Class: Organizer::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Event

Returns a new instance of Event.



6
7
8
9
10
# File 'lib/organizer/objects/event.rb', line 6

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

Instance Attribute Details

#currencyObject

Returns the value of attribute currency.



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

def currency
  @currency
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#endObject

Returns the value of attribute end.



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

def end
  @end
end

#listedObject

Returns the value of attribute listed.



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

def listed
  @listed
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#online_eventObject

Returns the value of attribute online_event.



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

def online_event
  @online_event
end

#startObject

Returns the value of attribute start.



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

def start
  @start
end

#status=(value) ⇒ Object (writeonly)

Sets the attribute status

Parameters:

  • value

    the value to set the attribute status to.



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

def status=(value)
  @status = value
end