Class: Organizer::Event
- Inherits:
-
Object
- Object
- Organizer::Event
- Defined in:
- lib/organizer/objects/event.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#description ⇒ Object
Returns the value of attribute description.
-
#end ⇒ Object
Returns the value of attribute end.
-
#listed ⇒ Object
Returns the value of attribute listed.
-
#name ⇒ Object
Returns the value of attribute name.
-
#online_event ⇒ Object
Returns the value of attribute online_event.
-
#start ⇒ Object
Returns the value of attribute start.
-
#status ⇒ Object
writeonly
Sets the attribute status.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Event
constructor
A new instance of Event.
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
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/organizer/objects/event.rb', line 3 def currency @currency end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/organizer/objects/event.rb', line 3 def description @description end |
#end ⇒ Object
Returns the value of attribute end.
3 4 5 |
# File 'lib/organizer/objects/event.rb', line 3 def end @end end |
#listed ⇒ Object
Returns the value of attribute listed.
3 4 5 |
# File 'lib/organizer/objects/event.rb', line 3 def listed @listed end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/organizer/objects/event.rb', line 3 def name @name end |
#online_event ⇒ Object
Returns the value of attribute online_event.
3 4 5 |
# File 'lib/organizer/objects/event.rb', line 3 def online_event @online_event end |
#start ⇒ Object
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
4 5 6 |
# File 'lib/organizer/objects/event.rb', line 4 def status=(value) @status = value end |