Class: Fountain::Location
- Inherits:
-
Object
- Object
- Fountain::Location
- Defined in:
- lib/fountain/location.rb
Overview
Fountain Location
Instance Attribute Summary collapse
-
#raw_data ⇒ Object
readonly
Raw location data.
Instance Method Summary collapse
-
#id ⇒ Object
Location ID.
-
#initialize(data) ⇒ Location
constructor
A new instance of Location.
-
#name ⇒ Object
Name.
Constructor Details
#initialize(data) ⇒ Location
Returns a new instance of Location.
14 15 16 |
# File 'lib/fountain/location.rb', line 14 def initialize(data) @raw_data = Util.stringify_hash_keys data end |
Instance Attribute Details
#raw_data ⇒ Object (readonly)
Raw location data
9 10 11 |
# File 'lib/fountain/location.rb', line 9 def raw_data @raw_data end |
Instance Method Details
#id ⇒ Object
Location ID
19 20 21 |
# File 'lib/fountain/location.rb', line 19 def id raw_data['id'] end |
#name ⇒ Object
Name
24 25 26 |
# File 'lib/fountain/location.rb', line 24 def name raw_data['name'] end |