Class: Yelp::Response::Base
- Inherits:
-
Object
- Object
- Yelp::Response::Base
- Defined in:
- lib/yelp/responses/base.rb
Direct Known Subclasses
Business, Model::Business, Model::Coordinate, Model::Deal, Model::DealOption, Model::GiftCertificate, Model::GiftCertificateOption, Model::Location, Model::Region, Model::RegionCenter, Model::RegionSpan, Model::Review, Model::User, PhoneSearch, Search
Instance Method Summary collapse
-
#initialize(json) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(json) ⇒ Base
Returns a new instance of Base.
4 5 6 7 8 9 10 |
# File 'lib/yelp/responses/base.rb', line 4 def initialize(json) return if json.nil? json.each do |key, value| instance_variable_set("@#{key}", value) end end |