Class: Yelp::Response::Model::Region
- Defined in:
- lib/yelp/responses/models/region.rb
Instance Attribute Summary collapse
-
#center ⇒ Object
readonly
Returns the value of attribute center.
-
#span ⇒ Object
readonly
Returns the value of attribute span.
Instance Method Summary collapse
-
#initialize(json) ⇒ Region
constructor
A new instance of Region.
Constructor Details
#initialize(json) ⇒ Region
Returns a new instance of Region.
11 12 13 14 15 16 |
# File 'lib/yelp/responses/models/region.rb', line 11 def initialize(json) super(json) @center = parse(@center, RegionCenter) @span = parse(@span, RegionSpan) end |
Instance Attribute Details
#center ⇒ Object (readonly)
Returns the value of attribute center.
9 10 11 |
# File 'lib/yelp/responses/models/region.rb', line 9 def center @center end |
#span ⇒ Object (readonly)
Returns the value of attribute span.
9 10 11 |
# File 'lib/yelp/responses/models/region.rb', line 9 def span @span end |