Class: Stripe::GiftCardsService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/gift_cards_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from StripeService

#request, #request_stream

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

#cardsObject (readonly)

Returns the value of attribute cards.



6
7
8
# File 'lib/stripe/services/gift_cards_service.rb', line 6

def cards
  @cards
end

#transactionsObject (readonly)

Returns the value of attribute transactions.



6
7
8
# File 'lib/stripe/services/gift_cards_service.rb', line 6

def transactions
  @transactions
end