Class: XapiScraper::Models::Components::GetDmMediaV3Data
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::GetDmMediaV3Data
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/getdmmediav3data.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(url:, path:, content_type:, byte_length:, cached:, filename: nil) ⇒ GetDmMediaV3Data
constructor
A new instance of GetDmMediaV3Data.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(url:, path:, content_type:, byte_length:, cached:, filename: nil) ⇒ GetDmMediaV3Data
Returns a new instance of GetDmMediaV3Data.
54 55 56 57 58 59 60 61 |
# File 'lib/xapi_scraper/models/components/getdmmediav3data.rb', line 54 def initialize(url:, path:, content_type:, byte_length:, cached:, filename: nil) @url = url @path = path @content_type = content_type @byte_length = byte_length @cached = cached @filename = filename end |
Instance Method Details
#==(other) ⇒ Object
64 65 66 67 68 69 70 71 72 73 |
# File 'lib/xapi_scraper/models/components/getdmmediav3data.rb', line 64 def ==(other) return false unless other.is_a?(self.class) return false unless @url == other.url return false unless @path == other.path return false unless @content_type == other.content_type return false unless @byte_length == other.byte_length return false unless @cached == other.cached return false unless @filename == other.filename true end |