Class: StackOne::Models::Shared::LinkedAccount
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::LinkedAccount
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/linkedaccount.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(created_at:, id:, origin_owner_id:, origin_owner_name:, provider:, status:, updated_at:, credentials: nil, label: nil, origin_username: nil, provider_name: nil, setup_information: nil, shared: nil, status_reasons: nil, type: nil) ⇒ LinkedAccount
constructor
A new instance of LinkedAccount.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(created_at:, id:, origin_owner_id:, origin_owner_name:, provider:, status:, updated_at:, credentials: nil, label: nil, origin_username: nil, provider_name: nil, setup_information: nil, shared: nil, status_reasons: nil, type: nil) ⇒ LinkedAccount
Returns a new instance of LinkedAccount.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/stack_one/models/shared/linkedaccount.rb', line 47 def initialize(created_at:, id:, origin_owner_id:, origin_owner_name:, provider:, status:, updated_at:, credentials: nil, label: nil, origin_username: nil, provider_name: nil, setup_information: nil, shared: nil, status_reasons: nil, type: nil) @created_at = created_at @id = id @origin_owner_id = origin_owner_id @origin_owner_name = origin_owner_name @provider = provider @status = status @updated_at = updated_at @credentials = credentials @label = label @origin_username = origin_username @provider_name = provider_name @setup_information = setup_information @shared = shared @status_reasons = status_reasons @type = type end |
Instance Method Details
#==(other) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/stack_one/models/shared/linkedaccount.rb', line 66 def ==(other) return false unless other.is_a? self.class return false unless @created_at == other.created_at return false unless @id == other.id return false unless @origin_owner_id == other.origin_owner_id return false unless @origin_owner_name == other.origin_owner_name return false unless @provider == other.provider return false unless @status == other.status return false unless @updated_at == other.updated_at return false unless @credentials == other.credentials return false unless @label == other.label return false unless @origin_username == other.origin_username return false unless @provider_name == other.provider_name return false unless @setup_information == other.setup_information return false unless @shared == other.shared return false unless @status_reasons == other.status_reasons return false unless @type == other.type true end |