Module: FidorApi::Client::DSL::Cards
- Defined in:
- lib/fidor_api/client/dsl/cards.rb
Instance Method Summary collapse
- #card(id, options = {}) ⇒ Object
- #cards(options = {}) ⇒ Object
- #create_card(attributes = {}, options = {}) ⇒ Object
Instance Method Details
#card(id, options = {}) ⇒ Object
9 10 11 |
# File 'lib/fidor_api/client/dsl/cards.rb', line 9 def card(id, = {}) fetch(:single, Model::Card, "cards/#{id}", ) end |
#cards(options = {}) ⇒ Object
5 6 7 |
# File 'lib/fidor_api/client/dsl/cards.rb', line 5 def cards( = {}) fetch(:collection, Model::Card, 'cards', ) end |
#create_card(attributes = {}, options = {}) ⇒ Object
13 14 15 |
# File 'lib/fidor_api/client/dsl/cards.rb', line 13 def create_card(attributes = {}, = {}) create(FidorApi::Model::Card, 'cards', attributes, ) end |