Class: SynapsePay::Card
- Inherits:
-
APIResource
- Object
- APIResource
- SynapsePay::Card
- Defined in:
- lib/synapse_pay/resources/card.rb
Instance Attribute Summary collapse
-
#account_class ⇒ Object
Returns the value of attribute account_class.
-
#account_number_string ⇒ Object
Returns the value of attribute account_number_string.
-
#account_type ⇒ Object
Returns the value of attribute account_type.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name_on_account ⇒ Object
Returns the value of attribute name_on_account.
-
#resource_uri ⇒ Object
Returns the value of attribute resource_uri.
-
#routing_number_string ⇒ Object
Returns the value of attribute routing_number_string.
Attributes inherited from APIResource
Instance Method Summary collapse
Methods inherited from APIResource
api_attribute_names, #api_attributes, api_subclass_fetch, api_subclasses, #changed_api_attributes, #clear_api_attributes, #determine_api_attribute_value, determine_api_attribute_value, #initialize, #inspect, #inspect_api_attributes, #inspect_nested, #refresh_from, register_api_subclass, #to_json
Constructor Details
This class inherits a constructor from SynapsePay::APIResource
Instance Attribute Details
#account_class ⇒ Object
Returns the value of attribute account_class.
3 4 5 |
# File 'lib/synapse_pay/resources/card.rb', line 3 def account_class @account_class end |
#account_number_string ⇒ Object
Returns the value of attribute account_number_string.
4 5 6 |
# File 'lib/synapse_pay/resources/card.rb', line 4 def account_number_string @account_number_string end |
#account_type ⇒ Object
Returns the value of attribute account_type.
5 6 7 |
# File 'lib/synapse_pay/resources/card.rb', line 5 def account_type @account_type end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/synapse_pay/resources/card.rb', line 6 def id @id end |
#name_on_account ⇒ Object
Returns the value of attribute name_on_account.
7 8 9 |
# File 'lib/synapse_pay/resources/card.rb', line 7 def name_on_account @name_on_account end |
#resource_uri ⇒ Object
Returns the value of attribute resource_uri.
8 9 10 |
# File 'lib/synapse_pay/resources/card.rb', line 8 def resource_uri @resource_uri end |
#routing_number_string ⇒ Object
Returns the value of attribute routing_number_string.
9 10 11 |
# File 'lib/synapse_pay/resources/card.rb', line 9 def routing_number_string @routing_number_string end |
Instance Method Details
#update(params = {}, headers = {}) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/synapse_pay/resources/card.rb', line 11 def update(params={}, headers={}) params = ParamsBuilder.merge({ :id => id, }, params) method = APIMethod.new(:post, "/card/edit", params, headers, self) json = @client.execute(method) self.refresh_from(json[:card], method, @client) end |