Class: AwsAgcod::CreateGiftCard
- Inherits:
-
Object
- Object
- AwsAgcod::CreateGiftCard
- Extended by:
- Forwardable
- Defined in:
- lib/aws_agcod/create_gift_card.rb
Instance Method Summary collapse
- #claim_code ⇒ Object
- #gc_id ⇒ Object
-
#initialize(request_id, amount) ⇒ CreateGiftCard
constructor
A new instance of CreateGiftCard.
- #request_id ⇒ Object
Constructor Details
#initialize(request_id, amount) ⇒ CreateGiftCard
9 10 11 12 13 14 15 16 |
# File 'lib/aws_agcod/create_gift_card.rb', line 9 def initialize(request_id, amount) @response = Request.new("CreateGiftCard", request_id, "value" => { "currencyCode" => "USD", "amount" => amount } ).response end |
Instance Method Details
#claim_code ⇒ Object
18 19 20 |
# File 'lib/aws_agcod/create_gift_card.rb', line 18 def claim_code @response.payload["gcClaimCode"] end |
#gc_id ⇒ Object
22 23 24 |
# File 'lib/aws_agcod/create_gift_card.rb', line 22 def gc_id @response.payload["gcId"] end |
#request_id ⇒ Object
26 27 28 |
# File 'lib/aws_agcod/create_gift_card.rb', line 26 def request_id @response.payload["creationRequestId"] end |