class TicketflyPlus::Objects::Image
Attributes
jumbo[RW]
jumbo1[RW]
large[RW]
large1[RW]
medium[RW]
medium1[RW]
original[RW]
small[RW]
small1[RW]
square[RW]
squareSmall[RW]
xlarge[RW]
xlarge1[RW]
xxlarge[RW]
xxlarge1[RW]
Public Class Methods
new(image)
click to toggle source
# File lib/ticketfly_plus/objects.rb, line 248 def initialize(image) @jumbo = check_nil(image['jumbo']) @jumbo1 = check_nil(image['jumbo1']) @large = check_nil(image['large']) @large1 = check_nil(image['large1']) @medium = check_nil(image['medium']) @medium1 = check_nil(image['medium1']) @original = check_nil(image['original']) @small = check_nil(image['small']) @small1 = check_nil(image['small1']) @square = check_nil(image['square']) @squareSmall = check_nil(image['squareSmall']) @xlarge = check_nil(image['xlarge']) @xlarge1 = check_nil(image['xlarge1']) @xxlarge = check_nil(image['xxlarge']) @xxlarge1 = check_nil(image['xxlarge1']) end
Private Instance Methods
check_nil(image)
click to toggle source
# File lib/ticketfly_plus/objects.rb, line 268 def check_nil(image) !image.nil? ? Objects::ImageDetails.new(image) : image end