Class: Moov::Models::Components::ShareScopes
- Inherits:
-
Object
- Object
- Moov::Models::Components::ShareScopes
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/sharescopes.rb
Overview
Describes the scopes being shared from a subject account to a principal account.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(principal_account_id:, allow_scopes: nil) ⇒ ShareScopes
constructor
A new instance of ShareScopes.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(principal_account_id:, allow_scopes: nil) ⇒ ShareScopes
Returns a new instance of ShareScopes.
21 22 23 24 |
# File 'lib/moov/models/components/sharescopes.rb', line 21 def initialize(principal_account_id:, allow_scopes: nil) @principal_account_id = principal_account_id @allow_scopes = allow_scopes end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/moov/models/components/sharescopes.rb', line 27 def ==(other) return false unless other.is_a? self.class return false unless @principal_account_id == other.principal_account_id return false unless @allow_scopes == other.allow_scopes true end |