Class: Yelp::Response::Model::Region

Inherits:
Base
  • Object
show all
Defined in:
lib/yelp/responses/models/region.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#centerObject (readonly)

Returns the value of attribute center.



9
10
11
# File 'lib/yelp/responses/models/region.rb', line 9

def center
  @center
end

#spanObject (readonly)

Returns the value of attribute span.



9
10
11
# File 'lib/yelp/responses/models/region.rb', line 9

def span
  @span
end