Class: TicketflyPlus::Objects::SaleDate
- Inherits:
-
Object
- Object
- TicketflyPlus::Objects::SaleDate
- Defined in:
- lib/ticketfly_plus/objects.rb
Instance Attribute Summary collapse
-
#endDate ⇒ Object
Returns the value of attribute endDate.
-
#name ⇒ Object
Returns the value of attribute name.
-
#startDate ⇒ Object
Returns the value of attribute startDate.
Instance Method Summary collapse
-
#initialize(date) ⇒ SaleDate
constructor
A new instance of SaleDate.
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
#endDate ⇒ Object
Returns the value of attribute endDate.
284 285 286 |
# File 'lib/ticketfly_plus/objects.rb', line 284 def endDate @endDate end |
#name ⇒ Object
Returns the value of attribute name.
285 286 287 |
# File 'lib/ticketfly_plus/objects.rb', line 285 def name @name end |
#startDate ⇒ Object
Returns the value of attribute startDate.
286 287 288 |
# File 'lib/ticketfly_plus/objects.rb', line 286 def startDate @startDate end |