Class: Vatsense::Models::CurrencyConvertResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/vatsense/models/currency_convert_response.rb

Overview

See Also:

Defined Under Namespace

Modules: Object

Instance Attribute Summary collapse

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(amount: nil, converted: nil, from: nil, object: nil, rate: nil, to: nil) ⇒ Object

Parameters:

  • amount (Float) (defaults to: nil)

    The original amount.

  • converted (Float) (defaults to: nil)

    The converted amount.

  • from (String) (defaults to: nil)
  • object (Symbol, Vatsense::Models::CurrencyConvertResponse::Data::Object) (defaults to: nil)
  • rate (Float) (defaults to: nil)

    The exchange rate used.

  • to (String) (defaults to: nil)


# File 'lib/vatsense/models/currency_convert_response.rb', line 62

Instance Attribute Details

#amountFloat?

The original amount.

Returns:

  • (Float, nil)


33
# File 'lib/vatsense/models/currency_convert_response.rb', line 33

optional :amount, Float

#convertedFloat?

The converted amount.

Returns:

  • (Float, nil)


39
# File 'lib/vatsense/models/currency_convert_response.rb', line 39

optional :converted, Float

#fromString?

Returns:

  • (String, nil)


44
# File 'lib/vatsense/models/currency_convert_response.rb', line 44

optional :from, String

#objectSymbol, ...



49
# File 'lib/vatsense/models/currency_convert_response.rb', line 49

optional :object, enum: -> { Vatsense::Models::CurrencyConvertResponse::Data::Object }

#rateFloat?

The exchange rate used.

Returns:

  • (Float, nil)


55
# File 'lib/vatsense/models/currency_convert_response.rb', line 55

optional :rate, Float

#toString?

Returns:

  • (String, nil)


60
# File 'lib/vatsense/models/currency_convert_response.rb', line 60

optional :to, String