Class: Yelp::Response::Model::GiftCertificate
- Defined in:
- lib/yelp/responses/models/gift_certificate.rb
Instance Attribute Summary collapse
-
#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.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#unused_balances ⇒ Object
readonly
Returns the value of attribute unused_balances.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ GiftCertificate
constructor
A new instance of GiftCertificate.
Constructor Details
#initialize(json) ⇒ GiftCertificate
Returns a new instance of GiftCertificate.
10 11 12 13 14 |
# File 'lib/yelp/responses/models/gift_certificate.rb', line 10 def initialize(json) super(json) @options = parse(@options, GiftCertificateOption) end |
Instance Attribute Details
#currency_code ⇒ Object (readonly)
Returns the value of attribute currency_code.
8 9 10 |
# File 'lib/yelp/responses/models/gift_certificate.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/gift_certificate.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/gift_certificate.rb', line 8 def image_url @image_url end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/yelp/responses/models/gift_certificate.rb', line 8 def @options end |
#unused_balances ⇒ Object (readonly)
Returns the value of attribute unused_balances.
8 9 10 |
# File 'lib/yelp/responses/models/gift_certificate.rb', line 8 def unused_balances @unused_balances end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
8 9 10 |
# File 'lib/yelp/responses/models/gift_certificate.rb', line 8 def url @url end |