Class: SportsOddsAPI::Models::Event::Info::Broadcast
Defined Under Namespace
Modules: Type
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(broadcaster_id: nil, name: nil, type: nil) ⇒ Object
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
# File 'lib/sports_odds_api/models/event.rb', line 139
class Broadcast < SportsOddsAPI::Internal::Type::BaseModel
optional :broadcaster_id, String, api_name: :broadcasterID
optional :name, String
optional :type, enum: -> { SportsOddsAPI::Event::Info::Broadcast::Type }
module Type
extend SportsOddsAPI::Internal::Type::Enum
TV = :tv
WEBSTREAM = :webstream
SUBSCRIPTION = :subscription
SPORTSBOOK = :sportsbook
end
end
|
Instance Attribute Details
#broadcaster_id ⇒ String?
143
|
# File 'lib/sports_odds_api/models/event.rb', line 143
optional :broadcaster_id, String, api_name: :broadcasterID
|
#name ⇒ String?
148
|
# File 'lib/sports_odds_api/models/event.rb', line 148
optional :name, String
|
#type ⇒ Symbol, ...
153
|
# File 'lib/sports_odds_api/models/event.rb', line 153
optional :type, enum: -> { SportsOddsAPI::Event::Info::Broadcast::Type }
|
Instance Method Details
#to_hash ⇒ {
197
|
# File 'sig/sports_odds_api/models/event.rbs', line 197
def to_hash: -> {
|