Class: ContextDev::Models::BrandRetrieveResponse::Brand::Stock
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::BrandRetrieveResponse::Brand::Stock
- Defined in:
- lib/context_dev/models/brand_retrieve_response.rb,
sig/context_dev/models/brand_retrieve_response.rbs
Overview
Instance Attribute Summary collapse
-
#exchange ⇒ String?
Stock exchange name.
-
#ticker ⇒ String?
Stock ticker symbol.
Instance Method Summary collapse
-
#initialize ⇒ Stock
constructor
A new instance of Stock.
- #to_hash ⇒ { exchange: String, ticker: String }
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 ⇒ Stock
Returns a new instance of Stock.
1415 |
# File 'sig/context_dev/models/brand_retrieve_response.rbs', line 1415
def initialize: (?exchange: String, ?ticker: String) -> void
|
Instance Attribute Details
#exchange ⇒ String?
Stock exchange name
1028 |
# File 'lib/context_dev/models/brand_retrieve_response.rb', line 1028 optional :exchange, String |
#ticker ⇒ String?
Stock ticker symbol
1034 |
# File 'lib/context_dev/models/brand_retrieve_response.rb', line 1034 optional :ticker, String |
Instance Method Details
#to_hash ⇒ { exchange: String, ticker: String }
1417 |
# File 'sig/context_dev/models/brand_retrieve_response.rbs', line 1417
def to_hash: -> { exchange: String, ticker: String }
|