Class: OpenApiSDK::Models::Operations::Files

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/open_api_sdk/models/operations/files.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(url:, file_name:, size:) ⇒ Files

Returns a new instance of Files.



23
24
25
26
27
# File 'lib/open_api_sdk/models/operations/files.rb', line 23

def initialize(url:, file_name:, size:)
  @url = url
  @file_name = file_name
  @size = size
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/open_api_sdk/models/operations/files.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @url == other.url
  return false unless @file_name == other.file_name
  return false unless @size == other.size
  true
end