Class: Moov::Models::Components::FileDetails

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/filedetails.rb

Overview

Describes a file linked to a Moov account.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(file_id:, file_name:, account_id:, file_purpose:, file_status:, metadata:, file_size_bytes:, created_on:, updated_on:, decision_reason: nil) ⇒ FileDetails

Returns a new instance of FileDetails.



38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/moov/models/components/filedetails.rb', line 38

def initialize(file_id:, file_name:, account_id:, file_purpose:, file_status:, metadata:, file_size_bytes:, created_on:, updated_on:, decision_reason: nil)
  @file_id = file_id
  @file_name = file_name
  @account_id = 
  @file_purpose = file_purpose
  @file_status = file_status
   = 
  @file_size_bytes = file_size_bytes
  @created_on = created_on
  @updated_on = updated_on
  @decision_reason = decision_reason
end

Instance Method Details

#==(other) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/moov/models/components/filedetails.rb', line 52

def ==(other)
  return false unless other.is_a? self.class
  return false unless @file_id == other.file_id
  return false unless @file_name == other.file_name
  return false unless @account_id == other.
  return false unless @file_purpose == other.file_purpose
  return false unless @file_status == other.file_status
  return false unless  == other.
  return false unless @file_size_bytes == other.file_size_bytes
  return false unless @created_on == other.created_on
  return false unless @updated_on == other.updated_on
  return false unless @decision_reason == other.decision_reason
  true
end