Class: Iyzi::Requests::CardStorage
- Inherits:
-
Iyzi::Request
- Object
- Iyzi::Request
- Iyzi::Requests::CardStorage
- Defined in:
- lib/iyzi/requests/card_storage.rb
Constant Summary
Constants inherited from Iyzi::Request
Iyzi::Request::AUTHORIZATION_HEADER_NAME, Iyzi::Request::AUTHORIZATION_HEADER_STRING, Iyzi::Request::DEFAULT_LOCALE, Iyzi::Request::RANDOM_HEADER_NAME
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Iyzi::Request
#config, #method, #options, #path, #pki, #random_string
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type, method, path, options = {}) ⇒ CardStorage
constructor
A new instance of CardStorage.
- #to_pki ⇒ Object
Methods inherited from Iyzi::Request
#auth_header_string, #auth_headers, #call, #connection, #has_pki?, #iyzi_options, #params_will_be_hashed, #request_hash_digest, #response, #secure_random_string
Constructor Details
#initialize(type, method, path, options = {}) ⇒ CardStorage
Returns a new instance of CardStorage.
20 21 22 23 |
# File 'lib/iyzi/requests/card_storage.rb', line 20 def initialize(type, method, path, = {}) @type = type super(method, path, ) end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/iyzi/requests/card_storage.rb', line 4 def type @type end |
Class Method Details
.add(options) ⇒ Object
7 8 9 |
# File 'lib/iyzi/requests/card_storage.rb', line 7 def add() new(:add, Endpoints::HTTP_POST, Endpoints::CARD_STORAGE_ADD, ) end |
.delete(options) ⇒ Object
11 12 13 |
# File 'lib/iyzi/requests/card_storage.rb', line 11 def delete() new(:delete, Endpoints::HTTP_DELETE, Endpoints::CARD_STORAGE_DELETE, ) end |
.list(options) ⇒ Object
15 16 17 |
# File 'lib/iyzi/requests/card_storage.rb', line 15 def list() new(:list, Endpoints::HTTP_POST, Endpoints::CARD_STORAGE_LIST, ) end |
Instance Method Details
#to_pki ⇒ Object
25 26 27 |
# File 'lib/iyzi/requests/card_storage.rb', line 25 def to_pki PkiBuilders::CardStorage.new().request_string end |