Module: Uphold::API::Card

Included in:
Uphold::API
Defined in:
lib/uphold/api/card.rb

Instance Method Summary collapse

Instance Method Details

#all_cardsObject



4
5
6
# File 'lib/uphold/api/card.rb', line 4

def all_cards
  Request.perform_with_objects(:get, cards_request_data)
end

#create_card(label: nil, currency: nil) ⇒ Object



12
13
14
# File 'lib/uphold/api/card.rb', line 12

def create_card(label: nil, currency: nil)
  Request.perform_with_object(:post, cards_request_data(label: label, currency: currency))
end

#find_card(id: nil) ⇒ Object



8
9
10
# File 'lib/uphold/api/card.rb', line 8

def find_card(id: nil)
  Request.perform_with_object(:get, card_request_data(id))
end