Class: Stripe::GiftCardsService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::GiftCardsService
- Defined in:
- lib/stripe/services/gift_cards_service.rb
Instance Attribute Summary collapse
-
#cards ⇒ Object
readonly
Returns the value of attribute cards.
-
#transactions ⇒ Object
readonly
Returns the value of attribute transactions.
Instance Method Summary collapse
-
#initialize(requestor) ⇒ GiftCardsService
constructor
A new instance of GiftCardsService.
Methods inherited from StripeService
Constructor Details
#initialize(requestor) ⇒ GiftCardsService
Returns a new instance of GiftCardsService.
8 9 10 11 12 |
# File 'lib/stripe/services/gift_cards_service.rb', line 8 def initialize(requestor) super(requestor) @cards = Stripe::GiftCards::CardService.new(@requestor) @transactions = Stripe::GiftCards::TransactionService.new(@requestor) end |
Instance Attribute Details
#cards ⇒ Object (readonly)
Returns the value of attribute cards.
6 7 8 |
# File 'lib/stripe/services/gift_cards_service.rb', line 6 def cards @cards end |
#transactions ⇒ Object (readonly)
Returns the value of attribute transactions.
6 7 8 |
# File 'lib/stripe/services/gift_cards_service.rb', line 6 def transactions @transactions end |