Class: OpenApiSDK::Models::Operations::CreatePartnerFields2

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(key:, label:, required:, locked:, position:, type:, constraints: nil) ⇒ CreatePartnerFields2

Returns a new instance of CreatePartnerFields2.



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

def initialize(key:, label:, required:, locked:, position:, type:, constraints: nil)
  @key = key
  @label = label
  @required = required
  @locked = locked
  @position = position
  @type = type
  @constraints = constraints
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @key == other.key
  return false unless @label == other.label
  return false unless @required == other.required
  return false unless @locked == other.locked
  return false unless @position == other.position
  return false unless @type == other.type
  return false unless @constraints == other.constraints
  true
end