Class: Google::Apis::MirrorV1::Account

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/mirror_v1/classes.rb,
generated/google/apis/mirror_v1/representations.rb,
generated/google/apis/mirror_v1/representations.rb

Overview

Represents an account passed into the Account Manager on Glass.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Account

Returns a new instance of Account



49
50
51
# File 'generated/google/apis/mirror_v1/classes.rb', line 49

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auth_tokensArray<Google::Apis::MirrorV1::AuthToken>

Corresponds to the JSON property authTokens



32
33
34
# File 'generated/google/apis/mirror_v1/classes.rb', line 32

def auth_tokens
  @auth_tokens
end

#featuresArray<String>

Corresponds to the JSON property features

Returns:

  • (Array<String>)


37
38
39
# File 'generated/google/apis/mirror_v1/classes.rb', line 37

def features
  @features
end

#passwordString

Corresponds to the JSON property password

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/mirror_v1/classes.rb', line 42

def password
  @password
end

#user_dataArray<Google::Apis::MirrorV1::UserData>

Corresponds to the JSON property userData



47
48
49
# File 'generated/google/apis/mirror_v1/classes.rb', line 47

def user_data
  @user_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



54
55
56
57
58
59
# File 'generated/google/apis/mirror_v1/classes.rb', line 54

def update!(**args)
  @auth_tokens = args[:auth_tokens] if args.key?(:auth_tokens)
  @features = args[:features] if args.key?(:features)
  @password = args[:password] if args.key?(:password)
  @user_data = args[:user_data] if args.key?(:user_data)
end