Class: Yelp::Response::Model::GiftCertificate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (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_urlObject (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

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

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

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end