Class: StackOne::Models::Shared::ConnectorProfileVersion

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/connectorprofileversion.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(builtin:, owner:, pinned:, version:) ⇒ ConnectorProfileVersion

Returns a new instance of ConnectorProfileVersion.



25
26
27
28
29
30
# File 'lib/stack_one/models/shared/connectorprofileversion.rb', line 25

def initialize(builtin:, owner:, pinned:, version:)
  @builtin = builtin
  @owner = owner
  @pinned = pinned
  @version = version
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/stack_one/models/shared/connectorprofileversion.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @builtin == other.builtin
  return false unless @owner == other.owner
  return false unless @pinned == other.pinned
  return false unless @version == other.version
  true
end