Class: RMeetup::Type::Rsvp
- Inherits:
-
Object
- Object
- RMeetup::Type::Rsvp
- Defined in:
- lib/rmeetup/type/rsvp.rb
Overview
RMeetup::Type::Rsvp
Data wraper for a Rsvp fethcing response Used to access result attributes as well as progammatically fetch relative data types based on this rsvp.
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#country ⇒ Object
Returns the value of attribute country.
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#link ⇒ Object
Returns the value of attribute link.
-
#lon ⇒ Object
Returns the value of attribute lon.
-
#name ⇒ Object
Returns the value of attribute name.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(rsvp = {}) ⇒ Rsvp
constructor
A new instance of Rsvp.
Constructor Details
#initialize(rsvp = {}) ⇒ Rsvp
Returns a new instance of Rsvp.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rmeetup/type/rsvp.rb', line 13 def initialize(rsvp = {}) self.name = rsvp['name'] self.link = rsvp['link'] self.comment = rsvp['comment'] self.lat = rsvp['lat'].to_f self.lon = rsvp['lon'].to_f self.country = rsvp['country'] self.state = rsvp['state'] self.city = rsvp['city'] end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
11 12 13 |
# File 'lib/rmeetup/type/rsvp.rb', line 11 def city @city end |
#comment ⇒ Object
Returns the value of attribute comment.
11 12 13 |
# File 'lib/rmeetup/type/rsvp.rb', line 11 def comment @comment end |
#country ⇒ Object
Returns the value of attribute country.
11 12 13 |
# File 'lib/rmeetup/type/rsvp.rb', line 11 def country @country end |
#lat ⇒ Object
Returns the value of attribute lat.
11 12 13 |
# File 'lib/rmeetup/type/rsvp.rb', line 11 def lat @lat end |
#link ⇒ Object
Returns the value of attribute link.
11 12 13 |
# File 'lib/rmeetup/type/rsvp.rb', line 11 def link @link end |
#lon ⇒ Object
Returns the value of attribute lon.
11 12 13 |
# File 'lib/rmeetup/type/rsvp.rb', line 11 def lon @lon end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/rmeetup/type/rsvp.rb', line 11 def name @name end |
#state ⇒ Object
Returns the value of attribute state.
11 12 13 |
# File 'lib/rmeetup/type/rsvp.rb', line 11 def state @state end |