Class: StackOne::Models::Shared::AuthenticationMetaItem
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::AuthenticationMetaItem
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/authenticationmetaitem.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(key: nil, label: nil, required_scopes: nil, support: nil, type: nil) ⇒ AuthenticationMetaItem
constructor
A new instance of AuthenticationMetaItem.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(key: nil, label: nil, required_scopes: nil, support: nil, type: nil) ⇒ AuthenticationMetaItem
Returns a new instance of AuthenticationMetaItem.
27 28 29 30 31 32 33 |
# File 'lib/stack_one/models/shared/authenticationmetaitem.rb', line 27 def initialize(key: nil, label: nil, required_scopes: nil, support: nil, type: nil) @key = key @label = label @required_scopes = required_scopes @support = support @type = type end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/stack_one/models/shared/authenticationmetaitem.rb', line 36 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_scopes == other.required_scopes return false unless @support == other.support return false unless @type == other.type true end |