Class: Eventick::Ticket
- Inherits:
-
Object
- Object
- Eventick::Ticket
- Defined in:
- lib/eventick/ticket.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Ticket
constructor
A new instance of Ticket.
Constructor Details
#initialize(args = {}) ⇒ Ticket
Returns a new instance of Ticket.
4 5 6 7 8 |
# File 'lib/eventick/ticket.rb', line 4 def initialize(args={}) args.each do |key, value| self.public_send("#{key}=", value) end end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/eventick/ticket.rb', line 2 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/eventick/ticket.rb', line 2 def name @name end |