Class: Yelp::Response::Business

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Business

Returns a new instance of Business.



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

def initialize(json)
  @business = parse(json, Model::Business)
end

Instance Attribute Details

#businessObject (readonly)

Returns the value of attribute business.



7
8
9
# File 'lib/yelp/responses/business.rb', line 7

def business
  @business
end