Class: Yelp::Response::Model::Deal

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_restrictionsObject (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_codeObject (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

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/yelp/responses/models/deal.rb', line 8

def id
  @id
end

#image_urlObject (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_restrictionObject (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

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

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/yelp/responses/models/deal.rb', line 8

def options
  @options
end

#time_endObject (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_startObject (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

#titleObject (readonly)

Returns the value of attribute title.



8
9
10
# File 'lib/yelp/responses/models/deal.rb', line 8

def title
  @title
end

#urlObject (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_getObject (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