Class: MetronomeSDK::Models::V1::Contracts::RateCardRetrieveResponse::Data::Alias

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_response.rb

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(id: , created_at: , created_by: , name: , aliases: nil, credit_type_conversions: nil, custom_fields: nil, description: nil, fiat_credit_type: nil) ⇒ Object

Parameters:



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_response.rb', line 86

class Alias < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute name
  #
  #   @return [String]
  required :name, String

  # @!attribute ending_before
  #
  #   @return [Time, nil]
  optional :ending_before, Time

  # @!attribute starting_at
  #
  #   @return [Time, nil]
  optional :starting_at, Time

  # @!method initialize(name:, ending_before: nil, starting_at: nil)
  #   @param name [String]
  #   @param ending_before [Time]
  #   @param starting_at [Time]
end

Instance Attribute Details

#ending_beforeTime?

Returns:

  • (Time, nil)


95
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_response.rb', line 95

optional :ending_before, Time

#nameString

Returns:

  • (String)


90
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_response.rb', line 90

required :name, String

#starting_atTime?

Returns:

  • (Time, nil)


100
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_response.rb', line 100

optional :starting_at, Time