Class: Moov::Models::Components::TermsOfService

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

Overview

Describes the acceptance of the Terms of Service.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(accepted_date:, accepted_ip:) ⇒ TermsOfService

Returns a new instance of TermsOfService.



22
23
24
25
# File 'lib/moov/models/components/termsofservice.rb', line 22

def initialize(accepted_date:, accepted_ip:)
  @accepted_date = accepted_date
  @accepted_ip = accepted_ip
end

Instance Method Details

#==(other) ⇒ Object



28
29
30
31
32
33
# File 'lib/moov/models/components/termsofservice.rb', line 28

def ==(other)
  return false unless other.is_a? self.class
  return false unless @accepted_date == other.accepted_date
  return false unless @accepted_ip == other.accepted_ip
  true
end