Class: GenesisRuby::Api::Requests::NonFinancial::Fx::SearchRate

Inherits:
Base::Versioned show all
Includes:
Mixins::Requests::NonFinancial::Fx::TierIdAttributes
Defined in:
lib/genesis_ruby/api/requests/non_financial/fx/search_rate.rb

Overview

This call is used to return information about selected Rate by currency pair

Constant Summary

Constants inherited from GenesisRuby::Api::Request

GenesisRuby::Api::Request::AUTH_TYPE_BASIC, GenesisRuby::Api::Request::AUTH_TYPE_TOKEN, GenesisRuby::Api::Request::METHOD_DELETE, GenesisRuby::Api::Request::METHOD_GET, GenesisRuby::Api::Request::METHOD_PATCH, GenesisRuby::Api::Request::METHOD_POST, GenesisRuby::Api::Request::METHOD_PUT, GenesisRuby::Api::Request::PORT_HTTPS, GenesisRuby::Api::Request::PROTOCOL_HTTPS

Instance Attribute Summary collapse

Attributes included from Mixins::Requests::NonFinancial::Fx::TierIdAttributes

#tier_id

Attributes inherited from Base::Versioned

#allowed_versions, #version

Attributes inherited from GenesisRuby::Api::Request

#api_config

Instance Method Summary collapse

Methods included from Mixins::Requests::NonFinancial::Fx::TierIdAttributes

#tier_id_required_fields

Methods inherited from GenesisRuby::Api::Request

#build_document

Constructor Details

#initialize(configuration, _builder_interface = nil) ⇒ SearchRate

Search Rate initialization



16
17
18
19
20
# File 'lib/genesis_ruby/api/requests/non_financial/fx/search_rate.rb', line 16

def initialize(configuration, _builder_interface = nil)
  super configuration

  self.request_path = 'fx/tiers/:tier_id/rates/search'
end

Instance Attribute Details

#source_currencyObject

Source currency



23
24
25
# File 'lib/genesis_ruby/api/requests/non_financial/fx/search_rate.rb', line 23

def source_currency
  @source_currency.to_s.upcase
end

#target_currencyObject

Target currency



28
29
30
# File 'lib/genesis_ruby/api/requests/non_financial/fx/search_rate.rb', line 28

def target_currency
  @target_currency.to_s.upcase
end