Class: SportsOddsAPI::Models::StreamEventsResponse
Overview
Defined Under Namespace
Classes: PusherOptions
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(channel: nil, data: nil, pusher_key: nil, pusher_options: nil, success: nil, user: nil) ⇒ Object
|
# File 'lib/sports_odds_api/models/stream_events_response.rb', line 39
|
Instance Attribute Details
#channel ⇒ String?
10
|
# File 'lib/sports_odds_api/models/stream_events_response.rb', line 10
optional :channel, String
|
15
|
# File 'lib/sports_odds_api/models/stream_events_response.rb', line 15
optional :data, -> { SportsOddsAPI::Internal::Type::ArrayOf[SportsOddsAPI::Event] }
|
#pusher_key ⇒ String?
20
|
# File 'lib/sports_odds_api/models/stream_events_response.rb', line 20
optional :pusher_key, String, api_name: :pusherKey
|
25
26
27
|
# File 'lib/sports_odds_api/models/stream_events_response.rb', line 25
optional :pusher_options,
-> { SportsOddsAPI::Models::StreamEventsResponse::PusherOptions },
api_name: :pusherOptions
|
#success ⇒ Boolean?
32
|
# File 'lib/sports_odds_api/models/stream_events_response.rb', line 32
optional :success, SportsOddsAPI::Internal::Type::Boolean
|
#user ⇒ String?
37
|
# File 'lib/sports_odds_api/models/stream_events_response.rb', line 37
optional :user, String
|
Instance Method Details
#to_hash ⇒ {
51
|
# File 'sig/sports_odds_api/models/stream_events_response.rbs', line 51
def to_hash: -> {
|