Class: Courier::Models::MessageHistoryResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/message_history_response.rb,
sig/courier/models/message_history_response.rbs

Overview

See Also:

  • Courier::Resources::Messages#history

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(results:) ⇒ MessageHistoryResponse

Returns a new instance of MessageHistoryResponse.

Parameters:

  • results (Array<Hash{Symbol=>Object}>)
  • results: (::Array[::Hash[Symbol, top]])


# File 'lib/courier/models/message_history_response.rb', line 13

Instance Attribute Details

#resultsArray<Hash{Symbol=>Object}>

Parameters:

  • value (::Array[::Hash[Symbol, top]])

Returns:

  • (Array<Hash{Symbol=>Object}>)


10
11
# File 'lib/courier/models/message_history_response.rb', line 10

required :results,
Courier::Internal::Type::ArrayOf[Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown]]

Instance Method Details

#to_hash{ results: ::Array[::Hash[Symbol, top]] }

Returns:

  • ({ results: ::Array[::Hash[Symbol, top]] })


10
# File 'sig/courier/models/message_history_response.rbs', line 10

def to_hash: -> { results: ::Array[::Hash[Symbol, top]] }