class EbanqApi::Cards

This class represents an cards functional of Ebanq REST Api.

Public Class Methods

new(client) click to toggle source

Declares an client instance.

# File lib/ebanq_api/blocks/cards.rb, line 13
def initialize(client)
  @client = client
end

Public Instance Methods

list() click to toggle source

List all cards belonging to user /api/v1/cards

Examples

client.cards.list

@return Array

# File lib/ebanq_api/blocks/cards.rb, line 37
def list
  @client.make_request :get, cards_path
end
show(id) click to toggle source

Retrieve a Card /api/v1/cards/{id}/

Attributes

  • id (required) - The ID of the card to retrieve. (Number)

Examples

client.cards.show(1)
# File lib/ebanq_api/blocks/cards.rb, line 26
def show(id)
  @client.make_request :get, cards_path(id)
end