Class: OpenApiSDK::Models::Operations::RequestBody2

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(type:, partner_id:, customer_id: nil, customer: nil, link_id: nil, lead_event_date: nil, lead_event_name: 'Sign up') ⇒ RequestBody2

Returns a new instance of RequestBody2.



31
32
33
34
35
36
37
38
39
# File 'lib/open_api_sdk/models/operations/requestbody_2.rb', line 31

def initialize(type:, partner_id:, customer_id: nil, customer: nil, link_id: nil, lead_event_date: nil, lead_event_name: 'Sign up')
  @type = type
  @partner_id = partner_id
  @customer_id = customer_id
  @customer = customer
  @link_id = link_id
  @lead_event_date = lead_event_date
  @lead_event_name = lead_event_name
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/open_api_sdk/models/operations/requestbody_2.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @type == other.type
  return false unless @partner_id == other.partner_id
  return false unless @customer_id == other.customer_id
  return false unless @customer == other.customer
  return false unless @link_id == other.link_id
  return false unless @lead_event_date == other.lead_event_date
  return false unless @lead_event_name == other.lead_event_name
  true
end