Class: WhopSDK::Models::MediaAsset::File
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::MediaAsset::File
- Defined in:
- lib/whop_sdk/models/media_asset.rb,
sig/whop_sdk/models/media_asset.rbs
Overview
Instance Attribute Summary collapse
-
#id ⇒ String
File ID, prefixed
file_. -
#url ⇒ String
CDN URL for downloading the file.
Instance Method Summary collapse
-
#initialize ⇒ File
constructor
A new instance of File.
- #to_hash ⇒ { id: String, url: 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 ⇒ File
Returns a new instance of File.
76 |
# File 'sig/whop_sdk/models/media_asset.rbs', line 76
def initialize: (id: String, url: String) -> void
|
Instance Attribute Details
#id ⇒ String
File ID, prefixed file_.
109 |
# File 'lib/whop_sdk/models/media_asset.rb', line 109 required :id, String |
#url ⇒ String
CDN URL for downloading the file.
115 |
# File 'lib/whop_sdk/models/media_asset.rb', line 115 required :url, String |
Instance Method Details
#to_hash ⇒ { id: String, url: String }
78 |
# File 'sig/whop_sdk/models/media_asset.rbs', line 78
def to_hash: -> { id: String, url: String }
|