Class: Telnyx::Models::Rcs::StockSymbolBrandIdentifier

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/rcs/stock_symbol_brand_identifier.rb,
sig/telnyx/models/rcs/stock_symbol_brand_identifier.rbs

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(value:, identifier_type: :STOCK_SYMBOL) ⇒ StockSymbolBrandIdentifier

Returns a new instance of StockSymbolBrandIdentifier.

Parameters:

  • value (String)

    A stock symbol using EXCHANGE:SYMBOL.

  • identifier_type (Symbol, :STOCK_SYMBOL) (defaults to: :STOCK_SYMBOL)
  • value: (String)
  • identifier_type: (:STOCK_SYMBOL) (defaults to: :STOCK_SYMBOL)


# File 'lib/telnyx/models/rcs/stock_symbol_brand_identifier.rb', line 18

Instance Attribute Details

#identifier_typeSymbol, :STOCK_SYMBOL

Parameters:

  • value (:STOCK_SYMBOL)

Returns:

  • (Symbol, :STOCK_SYMBOL)


10
# File 'lib/telnyx/models/rcs/stock_symbol_brand_identifier.rb', line 10

required :identifier_type, const: :STOCK_SYMBOL

#valueString

A stock symbol using EXCHANGE:SYMBOL.

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/telnyx/models/rcs/stock_symbol_brand_identifier.rb', line 16

required :value, String

Instance Method Details

#to_hash{ identifier_type: :STOCK_SYMBOL, value: String }

Returns:

  • ({ identifier_type: :STOCK_SYMBOL, value: String })


14
# File 'sig/telnyx/models/rcs/stock_symbol_brand_identifier.rbs', line 14

def to_hash: -> { identifier_type: :STOCK_SYMBOL, value: String }