Module: FidorApi::Card::ClientSupport
- Included in:
- FidorApi::Client
- Defined in:
- lib/fidor_api/card.rb
Instance Method Summary collapse
- #build_card(attributes = {}) ⇒ Object
- #card(id) ⇒ Object
- #cards(options = {}) ⇒ Object
- #lock_card(id) ⇒ Object
- #unlock_card(id) ⇒ Object
Instance Method Details
#build_card(attributes = {}) ⇒ Object
88 89 90 |
# File 'lib/fidor_api/card.rb', line 88 def build_card(attributes = {}) Card.new(attributes.merge(client: self)) end |
#card(id) ⇒ Object
76 77 78 |
# File 'lib/fidor_api/card.rb', line 76 def card(id) Card.find(token.access_token, id) end |
#cards(options = {}) ⇒ Object
72 73 74 |
# File 'lib/fidor_api/card.rb', line 72 def cards( = {}) Card.all(token.access_token, ) end |