Class: FacebookEvents::Event
- Inherits:
-
Object
- Object
- FacebookEvents::Event
- Defined in:
- lib/facebook_events/event.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#end_time ⇒ Object
readonly
Returns the value of attribute end_time.
-
#facebook_id ⇒ Object
readonly
Returns the value of attribute facebook_id.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
-
#updated_time ⇒ Object
readonly
Returns the value of attribute updated_time.
Instance Method Summary collapse
-
#initialize(event) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(event) ⇒ Event
Returns a new instance of Event.
5 6 7 8 9 10 11 12 13 |
# File 'lib/facebook_events/event.rb', line 5 def initialize(event) @facebook_id = event.id @name = event.name @start_time = event.start_time @end_time = event.end_time @location = event.location @description = event.description @updated_time = event.updated_time end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/facebook_events/event.rb', line 3 def description @description end |
#end_time ⇒ Object (readonly)
Returns the value of attribute end_time.
3 4 5 |
# File 'lib/facebook_events/event.rb', line 3 def end_time @end_time end |
#facebook_id ⇒ Object (readonly)
Returns the value of attribute facebook_id.
3 4 5 |
# File 'lib/facebook_events/event.rb', line 3 def facebook_id @facebook_id end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
3 4 5 |
# File 'lib/facebook_events/event.rb', line 3 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/facebook_events/event.rb', line 3 def name @name end |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
3 4 5 |
# File 'lib/facebook_events/event.rb', line 3 def start_time @start_time end |
#updated_time ⇒ Object (readonly)
Returns the value of attribute updated_time.
3 4 5 |
# File 'lib/facebook_events/event.rb', line 3 def updated_time @updated_time end |