Class: Files::AgentV2Auth
- Inherits:
-
Object
- Object
- Files::AgentV2Auth
- Defined in:
- lib/files.com/models/agent_v2_auth.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#id ⇒ Object
int64 - Agent ID.
-
#initialize(attributes = {}, options = {}) ⇒ AgentV2Auth
constructor
A new instance of AgentV2Auth.
-
#nonce ⇒ Object
string - authentication nonce.
-
#site_id ⇒ Object
int64 - Agent's site ID.
-
#status ⇒ Object
string - in_setup: waiting for signed_nonce, complete: authorization approved.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ AgentV2Auth
Returns a new instance of AgentV2Auth.
7 8 9 10 |
# File 'lib/files.com/models/agent_v2_auth.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/agent_v2_auth.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/agent_v2_auth.rb', line 5 def @options end |
Instance Method Details
#id ⇒ Object
int64 - Agent ID
13 14 15 |
# File 'lib/files.com/models/agent_v2_auth.rb', line 13 def id @attributes[:id] end |
#nonce ⇒ Object
string - authentication nonce
18 19 20 |
# File 'lib/files.com/models/agent_v2_auth.rb', line 18 def nonce @attributes[:nonce] end |
#site_id ⇒ Object
int64 - Agent's site ID
28 29 30 |
# File 'lib/files.com/models/agent_v2_auth.rb', line 28 def site_id @attributes[:site_id] end |
#status ⇒ Object
string - in_setup: waiting for signed_nonce, complete: authorization approved
23 24 25 |
# File 'lib/files.com/models/agent_v2_auth.rb', line 23 def status @attributes[:status] end |