Class: Yelp::Fusion::Responses::Models::Region

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

Overview

Model for the Region JSON body

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Region

Returns a new instance of Region.



33
34
35
36
# File 'lib/yelp/fusion/responses/models/region.rb', line 33

def initialize(json)
  super(json)
  @center = parse(@center, Center)
end

Instance Attribute Details

#centerObject (readonly)

Returns the value of attribute center.



32
33
34
# File 'lib/yelp/fusion/responses/models/region.rb', line 32

def center
  @center
end