Class: TicketflyPlus::Objects::SaleDate

Inherits:
Object
  • Object
show all
Defined in:
lib/ticketfly_plus/objects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date) ⇒ SaleDate

Returns a new instance of SaleDate.



288
289
290
291
292
# File 'lib/ticketfly_plus/objects.rb', line 288

def initialize(date)
    @endDate = date['endDate'] != nil ? DateTime.parse(date['endDate']) : date['endDate']
    @name = date['name']
    @startDate = date['startDate'] != nil ? DateTime.parse(date['startDate']) : date['startDate']
end

Instance Attribute Details

#endDateObject

Returns the value of attribute endDate.



284
285
286
# File 'lib/ticketfly_plus/objects.rb', line 284

def endDate
  @endDate
end

#nameObject

Returns the value of attribute name.



285
286
287
# File 'lib/ticketfly_plus/objects.rb', line 285

def name
  @name
end

#startDateObject

Returns the value of attribute startDate.



286
287
288
# File 'lib/ticketfly_plus/objects.rb', line 286

def startDate
  @startDate
end