Class: StackOne::Models::Shared::ApplicationAttachment

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(content: nil, content_type: nil, file_name: nil, url: nil) ⇒ ApplicationAttachment

Returns a new instance of ApplicationAttachment.



25
26
27
28
29
30
# File 'lib/stack_one/models/shared/applicationattachment.rb', line 25

def initialize(content: nil, content_type: nil, file_name: nil, url: nil)
  @content = content
  @content_type = content_type
  @file_name = file_name
  @url = url
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/stack_one/models/shared/applicationattachment.rb', line 33

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