Class: Clerk::Models::Components::FeatureResponse

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/components/featureresponse.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, name:, slug:, description: nil, avatar_url: nil) ⇒ FeatureResponse

Returns a new instance of FeatureResponse.



29
30
31
32
33
34
35
36
# File 'lib/clerk/models/components/featureresponse.rb', line 29

def initialize(object:, id:, name:, slug:, description: nil, avatar_url: nil)
  @object = object
  @id = id
  @name = name
  @slug = slug
  @description = description
  @avatar_url = avatar_url
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/clerk/models/components/featureresponse.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @object == other.object
  return false unless @id == other.id
  return false unless @name == other.name
  return false unless @slug == other.slug
  return false unless @description == other.description
  return false unless @avatar_url == other.avatar_url
  true
end