Module: GettyUp::Configurable
Instance Attribute Summary collapse
-
#api_password ⇒ Object
writeonly
Sets the attribute api_password.
-
#api_username ⇒ Object
writeonly
Sets the attribute api_username.
-
#secret_token ⇒ Object
Returns the value of attribute secret_token.
-
#status ⇒ Object
Returns the value of attribute status.
-
#system_id ⇒ Object
writeonly
Sets the attribute system_id.
-
#system_password ⇒ Object
writeonly
Sets the attribute system_password.
-
#token ⇒ Object
Returns the value of attribute token.
-
#token_duration ⇒ Object
Returns the value of attribute token_duration.
-
#token_expiration ⇒ Object
Returns the value of attribute token_expiration.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#api_password=(value) ⇒ Object (writeonly)
Sets the attribute api_password
3 4 5 |
# File 'lib/getty_up/configurable.rb', line 3 def api_password=(value) @api_password = value end |
#api_username=(value) ⇒ Object (writeonly)
Sets the attribute api_username
3 4 5 |
# File 'lib/getty_up/configurable.rb', line 3 def api_username=(value) @api_username = value end |
#secret_token ⇒ Object
Returns the value of attribute secret_token.
4 5 6 |
# File 'lib/getty_up/configurable.rb', line 4 def secret_token @secret_token end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/getty_up/configurable.rb', line 4 def status @status end |
#system_id=(value) ⇒ Object (writeonly)
Sets the attribute system_id
3 4 5 |
# File 'lib/getty_up/configurable.rb', line 3 def system_id=(value) @system_id = value end |
#system_password=(value) ⇒ Object (writeonly)
Sets the attribute system_password
3 4 5 |
# File 'lib/getty_up/configurable.rb', line 3 def system_password=(value) @system_password = value end |
#token ⇒ Object
Returns the value of attribute token.
4 5 6 |
# File 'lib/getty_up/configurable.rb', line 4 def token @token end |
#token_duration ⇒ Object
Returns the value of attribute token_duration.
4 5 6 |
# File 'lib/getty_up/configurable.rb', line 4 def token_duration @token_duration end |
#token_expiration ⇒ Object
Returns the value of attribute token_expiration.
4 5 6 |
# File 'lib/getty_up/configurable.rb', line 4 def token_expiration @token_expiration end |
Class Method Details
.keys ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/getty_up/configurable.rb', line 7 def keys @keys ||= [ :system_id, :system_password, :api_username, :api_password, :status, :token, :secret_token, :token_duration, :token_expiration ] end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
22 23 24 25 |
# File 'lib/getty_up/configurable.rb', line 22 def configure yield self self end |
#credentials ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/getty_up/configurable.rb', line 27 def credentials { system_id: @system_id, system_password: @system_password, api_username: @api_username, api_password: @api_password } end |