Module: FidorApi::Client::DSL::Cards

Defined in:
lib/fidor_api/client/dsl/cards.rb

Instance Method Summary collapse

Instance Method Details

#card(id, options = {}) ⇒ Object



9
10
11
# File 'lib/fidor_api/client/dsl/cards.rb', line 9

def card(id, options = {})
  fetch(:single, Model::Card, "cards/#{id}", options)
end

#cards(options = {}) ⇒ Object



5
6
7
# File 'lib/fidor_api/client/dsl/cards.rb', line 5

def cards(options = {})
  fetch(:collection, Model::Card, 'cards', options)
end

#create_card(attributes = {}, options = {}) ⇒ Object



13
14
15
# File 'lib/fidor_api/client/dsl/cards.rb', line 13

def create_card(attributes = {}, options = {})
  create(FidorApi::Model::Card, 'cards', attributes, options)
end