Class: PayPal::SDK::REST::DataTypes::CreditCardList
- Inherits:
-
Base
- Object
- Core::API::DataTypes::Base
- Base
- PayPal::SDK::REST::DataTypes::CreditCardList
- Defined in:
- lib/paypal-sdk/rest/data_types.rb
Constant Summary
Constants inherited from Core::API::DataTypes::Base
Core::API::DataTypes::Base::ContentKey, Core::API::DataTypes::Base::HashOptions
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
#http_header, #merge!, #raise_error!, raise_on_api_error, #success?
Methods inherited from Core::API::DataTypes::Base
add_attribute, add_member, array_of, #convert_array, #convert_object, define_alias_methods, #hash_key, #initialize, #member_names, members, #members, #merge!, object_of, #set, #skip_value?, snakecase, #to_hash, #value_to_hash
Methods included from Core::Logging
#log_event, #logger, logger, logger=
Constructor Details
This class inherits a constructor from PayPal::SDK::Core::API::DataTypes::Base
Class Method Details
.list(options = {}) ⇒ Object
1160 1161 1162 1163 1164 1165 |
# File 'lib/paypal-sdk/rest/data_types.rb', line 1160 def list(={}) # for entire list of filter options, see https://developer.paypal.com/webapps/developer/docs/api/#list-credit-card-resources path = "v1/vault/credit-cards" response = api.get(path, ) self.new(response) end |
.load_members ⇒ Object
1152 1153 1154 1155 1156 1157 |
# File 'lib/paypal-sdk/rest/data_types.rb', line 1152 def self.load_members array_of :items, CreditCard object_of :total_items, Integer object_of :total_pages, Integer array_of :links, Links end |