Class: Yelp::Response::Model::Deal
- Defined in:
- lib/yelp/responses/models/deal.rb
Instance Attribute Summary collapse
-
#additional_restrictions ⇒ Object
readonly
Returns the value of attribute additional_restrictions.
-
#currency_code ⇒ Object
readonly
Returns the value of attribute currency_code.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#important_restriction ⇒ Object
readonly
Returns the value of attribute important_restriction.
-
#is_popular ⇒ Object
readonly
Returns the value of attribute is_popular.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#time_end ⇒ Object
readonly
Returns the value of attribute time_end.
-
#time_start ⇒ Object
readonly
Returns the value of attribute time_start.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#what_you_get ⇒ Object
readonly
Returns the value of attribute what_you_get.
Instance Method Summary collapse
-
#initialize(json) ⇒ Deal
constructor
A new instance of Deal.
Constructor Details
#initialize(json) ⇒ Deal
Returns a new instance of Deal.
11 12 13 14 15 |
# File 'lib/yelp/responses/models/deal.rb', line 11 def initialize(json) super(json) @options = parse(@options, DealOption) end |
Instance Attribute Details
#additional_restrictions ⇒ Object (readonly)
Returns the value of attribute additional_restrictions.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def additional_restrictions @additional_restrictions end |
#currency_code ⇒ Object (readonly)
Returns the value of attribute currency_code.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def currency_code @currency_code end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def id @id end |
#image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def image_url @image_url end |
#important_restriction ⇒ Object (readonly)
Returns the value of attribute important_restriction.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def important_restriction @important_restriction end |
#is_popular ⇒ Object (readonly)
Returns the value of attribute is_popular.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def is_popular @is_popular end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def @options end |
#time_end ⇒ Object (readonly)
Returns the value of attribute time_end.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def time_end @time_end end |
#time_start ⇒ Object (readonly)
Returns the value of attribute time_start.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def time_start @time_start end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def url @url end |
#what_you_get ⇒ Object (readonly)
Returns the value of attribute what_you_get.
8 9 10 |
# File 'lib/yelp/responses/models/deal.rb', line 8 def what_you_get @what_you_get end |