Class: Vatsense::Models::CurrencyListResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Vatsense::Models::CurrencyListResponse::Data
- Defined in:
- lib/vatsense/models/currency_list_response.rb
Defined Under Namespace
Modules: Object
Instance Attribute Summary collapse
-
#from ⇒ String?
The 3-character source currency code.
- #object ⇒ Symbol, ...
-
#rate ⇒ Float?
The exchange rate.
-
#to ⇒ String?
The 3-character target currency code (GBP or EUR).
Instance Method Summary collapse
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(from: nil, object: nil, rate: nil, to: nil) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/vatsense/models/currency_list_response.rb', line 27 class Data < Vatsense::Internal::Type::BaseModel # @!attribute from # The 3-character source currency code. # # @return [String, nil] optional :from, String # @!attribute object # # @return [Symbol, Vatsense::Models::CurrencyListResponse::Data::Object, nil] optional :object, enum: -> { Vatsense::Models::CurrencyListResponse::Data::Object } # @!attribute rate # The exchange rate. # # @return [Float, nil] optional :rate, Float # @!attribute to # The 3-character target currency code (GBP or EUR). # # @return [String, nil] optional :to, String # @!method initialize(from: nil, object: nil, rate: nil, to: nil) # @param from [String] The 3-character source currency code. # # @param object [Symbol, Vatsense::Models::CurrencyListResponse::Data::Object] # # @param rate [Float] The exchange rate. # # @param to [String] The 3-character target currency code (GBP or EUR). # @see Vatsense::Models::CurrencyListResponse::Data#object module Object extend Vatsense::Internal::Type::Enum CONVERT_RATE = :convert_rate # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#from ⇒ String?
The 3-character source currency code.
32 |
# File 'lib/vatsense/models/currency_list_response.rb', line 32 optional :from, String |
#object ⇒ Symbol, ...
37 |
# File 'lib/vatsense/models/currency_list_response.rb', line 37 optional :object, enum: -> { Vatsense::Models::CurrencyListResponse::Data::Object } |
#rate ⇒ Float?
The exchange rate.
43 |
# File 'lib/vatsense/models/currency_list_response.rb', line 43 optional :rate, Float |
#to ⇒ String?
The 3-character target currency code (GBP or EUR).
49 |
# File 'lib/vatsense/models/currency_list_response.rb', line 49 optional :to, String |