Class: Moov::Models::Components::ManualTermsOfService

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

Overview

Describes the acceptance of the Terms of Service. All data is required, and must be from the user.

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:, accepted_user_agent:, accepted_domain:) ⇒ ManualTermsOfService

Returns a new instance of ManualTermsOfService.



26
27
28
29
30
31
# File 'lib/moov/models/components/manualtermsofservice.rb', line 26

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

Instance Method Details

#==(other) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/moov/models/components/manualtermsofservice.rb', line 34

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
  return false unless @accepted_user_agent == other.accepted_user_agent
  return false unless @accepted_domain == other.accepted_domain
  true
end