Class: Yelp::Response::Model::Business

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoriesObject (readonly)

Returns the value of attribute categories.



11
12
13
# File 'lib/yelp/responses/models/business.rb', line 11

def categories
  @categories
end

#dealsObject (readonly)

Returns the value of attribute deals.



11
12
13
# File 'lib/yelp/responses/models/business.rb', line 11

def deals
  @deals
end

#display_phoneObject (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

#distanceObject (readonly)

Returns the value of attribute distance.



11
12
13
# File 'lib/yelp/responses/models/business.rb', line 11

def distance
  @distance
end

#eat24_urlObject (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_certificatesObject (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

#idObject (readonly)

Returns the value of attribute id.



11
12
13
# File 'lib/yelp/responses/models/business.rb', line 11

def id
  @id
end

#image_urlObject (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_claimedObject (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_closedObject (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

#locationObject (readonly)

Returns the value of attribute location.



11
12
13
# File 'lib/yelp/responses/models/business.rb', line 11

def location
  @location
end

Returns the value of attribute menu_date_updated.



11
12
13
# File 'lib/yelp/responses/models/business.rb', line 11

def menu_date_updated
  @menu_date_updated
end

Returns the value of attribute menu_provider.



11
12
13
# File 'lib/yelp/responses/models/business.rb', line 11

def menu_provider
  @menu_provider
end

#mobile_urlObject (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

#nameObject (readonly)

Returns the value of attribute name.



11
12
13
# File 'lib/yelp/responses/models/business.rb', line 11

def name
  @name
end

#phoneObject (readonly)

Returns the value of attribute phone.



11
12
13
# File 'lib/yelp/responses/models/business.rb', line 11

def phone
  @phone
end

#ratingObject (readonly)

Returns the value of attribute rating.



11
12
13
# File 'lib/yelp/responses/models/business.rb', line 11

def rating
  @rating
end

#rating_img_urlObject (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
  @rating_img_url
end

#rating_img_url_largeObject (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
  @rating_img_url_large
end

#rating_img_url_smallObject (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
  @rating_img_url_small
end

#reservation_urlObject (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_countObject (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

#reviewsObject (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_urlObject (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_textObject (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

#urlObject (readonly)

Returns the value of attribute url.



11
12
13
# File 'lib/yelp/responses/models/business.rb', line 11

def url
  @url
end