Class: Yelp::Response::Model::Business
- Defined in:
- lib/yelp/responses/models/business.rb
Instance Attribute Summary collapse
-
#categories ⇒ Object
readonly
Returns the value of attribute categories.
-
#deals ⇒ Object
readonly
Returns the value of attribute deals.
-
#display_phone ⇒ Object
readonly
Returns the value of attribute display_phone.
-
#distance ⇒ Object
readonly
Returns the value of attribute distance.
-
#eat24_url ⇒ Object
readonly
Returns the value of attribute eat24_url.
-
#gift_certificates ⇒ Object
readonly
Returns the value of attribute gift_certificates.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#is_claimed ⇒ Object
readonly
Returns the value of attribute is_claimed.
-
#is_closed ⇒ Object
readonly
Returns the value of attribute is_closed.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#menu_date_updated ⇒ Object
readonly
Returns the value of attribute menu_date_updated.
-
#menu_provider ⇒ Object
readonly
Returns the value of attribute menu_provider.
-
#mobile_url ⇒ Object
readonly
Returns the value of attribute mobile_url.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#rating ⇒ Object
readonly
Returns the value of attribute rating.
-
#rating_img_url ⇒ Object
readonly
Returns the value of attribute rating_img_url.
-
#rating_img_url_large ⇒ Object
readonly
Returns the value of attribute rating_img_url_large.
-
#rating_img_url_small ⇒ Object
readonly
Returns the value of attribute rating_img_url_small.
-
#reservation_url ⇒ Object
readonly
Returns the value of attribute reservation_url.
-
#review_count ⇒ Object
readonly
Returns the value of attribute review_count.
-
#reviews ⇒ Object
readonly
Returns the value of attribute reviews.
-
#snippet_image_url ⇒ Object
readonly
Returns the value of attribute snippet_image_url.
-
#snippet_text ⇒ Object
readonly
Returns the value of attribute snippet_text.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ Business
constructor
A new instance of Business.
Constructor Details
#initialize(json) ⇒ Business
Returns a new instance of Business.
16 17 18 19 20 21 22 23 |
# File 'lib/yelp/responses/models/business.rb', line 16 def initialize(json) super(json) @deals = parse(@deals, Deal) @gift_certificates = parse(@gift_certificates, GiftCertificate) @location = parse(@location, Location) @reviews = parse(@reviews, Review) end |
Instance Attribute Details
#categories ⇒ Object (readonly)
Returns the value of attribute categories.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def categories @categories end |
#deals ⇒ Object (readonly)
Returns the value of attribute deals.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def deals @deals end |
#display_phone ⇒ Object (readonly)
Returns the value of attribute display_phone.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def display_phone @display_phone end |
#distance ⇒ Object (readonly)
Returns the value of attribute distance.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def distance @distance end |
#eat24_url ⇒ Object (readonly)
Returns the value of attribute eat24_url.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def eat24_url @eat24_url end |
#gift_certificates ⇒ Object (readonly)
Returns the value of attribute gift_certificates.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def gift_certificates @gift_certificates end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def id @id end |
#image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def image_url @image_url end |
#is_claimed ⇒ Object (readonly)
Returns the value of attribute is_claimed.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def is_claimed @is_claimed end |
#is_closed ⇒ Object (readonly)
Returns the value of attribute is_closed.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def is_closed @is_closed end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def location @location end |
#menu_date_updated ⇒ Object (readonly)
Returns the value of attribute menu_date_updated.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def @menu_date_updated end |
#menu_provider ⇒ Object (readonly)
Returns the value of attribute menu_provider.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def @menu_provider end |
#mobile_url ⇒ Object (readonly)
Returns the value of attribute mobile_url.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def mobile_url @mobile_url end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def name @name end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def phone @phone end |
#rating ⇒ Object (readonly)
Returns the value of attribute rating.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def @rating end |
#rating_img_url ⇒ Object (readonly)
Returns the value of attribute rating_img_url.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def @rating_img_url end |
#rating_img_url_large ⇒ Object (readonly)
Returns the value of attribute rating_img_url_large.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def @rating_img_url_large end |
#rating_img_url_small ⇒ Object (readonly)
Returns the value of attribute rating_img_url_small.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def @rating_img_url_small end |
#reservation_url ⇒ Object (readonly)
Returns the value of attribute reservation_url.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def reservation_url @reservation_url end |
#review_count ⇒ Object (readonly)
Returns the value of attribute review_count.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def review_count @review_count end |
#reviews ⇒ Object (readonly)
Returns the value of attribute reviews.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def reviews @reviews end |
#snippet_image_url ⇒ Object (readonly)
Returns the value of attribute snippet_image_url.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def snippet_image_url @snippet_image_url end |
#snippet_text ⇒ Object (readonly)
Returns the value of attribute snippet_text.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def snippet_text @snippet_text end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
11 12 13 |
# File 'lib/yelp/responses/models/business.rb', line 11 def url @url end |