Class: EML::UK::Parameters

Inherits:
Parameters show all
Extended by:
T::Sig
Defined in:
lib/eml/uk/parameters.rb,
lib/eml/uk/parameters/card/lock.rb,
lib/eml/uk/parameters/card/show.rb,
lib/eml/uk/parameters/card/void.rb,
lib/eml/uk/parameters/card/reload.rb,
lib/eml/uk/parameters/card/unload.rb,
lib/eml/uk/parameters/card/unlock.rb,
lib/eml/uk/parameters/card/register.rb,
lib/eml/uk/parameters/agreement/show.rb,
lib/eml/uk/parameters/card/activation.rb,
lib/eml/uk/parameters/card/transaction.rb

Defined Under Namespace

Modules: Agreement, Card

Constant Summary

Constants inherited from Parameters

Parameters::ENDPOINT_CLASS_TYPE

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Parameters

#to_h

Constructor Details

#initialize(params) ⇒ Parameters

Returns a new instance of Parameters.



12
13
14
15
16
17
18
19
# File 'lib/eml/uk/parameters.rb', line 12

def initialize(params)
  params = merge_required_config(params)
  params = merge_optional_config(params)

  @search_parameter = T.let(nil, T.nilable(String))

  super
end

Class Method Details

.convert(resource_class, endpoint, params) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
# File 'lib/eml/uk/parameters.rb', line 31

def convert(resource_class, endpoint, params)
  endpoint_class = EML::UK::EndpointClass.(
    class_type: const_get(:ENDPOINT_CLASS_TYPE),
    resource_class: resource_class, endpoint: endpoint
  )

  convert_with_endpoint_class(
    endpoint: endpoint, endpoint_class: endpoint_class,
    resource_class: resource_class, params: params
  )
end