Class: Eventick::Ticket

Inherits:
Object
  • Object
show all
Defined in:
lib/eventick/ticket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/eventick/ticket.rb', line 2

def id
  @id
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/eventick/ticket.rb', line 2

def name
  @name
end