Class: StackOne::Models::Shared::DownloadHeadersApiModel

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/downloadheadersapimodel.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(content_disposition: nil, content_encoding: nil, content_length: nil, content_range: nil, content_type: nil, transfer_encoding: nil) ⇒ DownloadHeadersApiModel

Returns a new instance of DownloadHeadersApiModel.



29
30
31
32
33
34
35
36
# File 'lib/stack_one/models/shared/downloadheadersapimodel.rb', line 29

def initialize(content_disposition: nil, content_encoding: nil, content_length: nil, content_range: nil, content_type: nil, transfer_encoding: nil)
  @content_disposition = content_disposition
  @content_encoding = content_encoding
  @content_length = content_length
  @content_range = content_range
  @content_type = content_type
  @transfer_encoding = transfer_encoding
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/stack_one/models/shared/downloadheadersapimodel.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @content_disposition == other.content_disposition
  return false unless @content_encoding == other.content_encoding
  return false unless @content_length == other.content_length
  return false unless @content_range == other.content_range
  return false unless @content_type == other.content_type
  return false unless @transfer_encoding == other.transfer_encoding
  true
end