Class: Organizer::Ticket

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Ticket

Returns a new instance of Ticket.



7
8
9
10
11
# File 'lib/organizer/objects/ticket.rb', line 7

def initialize(params={})
			params.each do |attr, value|
				self.public_send("#{attr}=", value)
			end
end

Instance Attribute Details

#costObject

Returns the value of attribute cost.



3
4
5
# File 'lib/organizer/objects/ticket.rb', line 3

def cost
  @cost
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/organizer/objects/ticket.rb', line 4

def description
  @description
end

#donationObject

Returns the value of attribute donation.



4
5
6
# File 'lib/organizer/objects/ticket.rb', line 4

def donation
  @donation
end

#freeObject

Returns the value of attribute free.



4
5
6
# File 'lib/organizer/objects/ticket.rb', line 4

def free
  @free
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/organizer/objects/ticket.rb', line 4

def name
  @name
end

#quantity_totalObject

Returns the value of attribute quantity_total.



4
5
6
# File 'lib/organizer/objects/ticket.rb', line 4

def quantity_total
  @quantity_total
end

#sales_startObject

Returns the value of attribute sales_start.



3
4
5
# File 'lib/organizer/objects/ticket.rb', line 3

def sales_start
  @sales_start
end