Class: Files::AgentV2Auth

Inherits:
Object
  • Object
show all
Defined in:
lib/files.com/models/agent_v2_auth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = {}, options = {})
  @attributes = attributes || {}
  @options = options || {}
end

Instance Attribute Details

#attributesObject (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

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/files.com/models/agent_v2_auth.rb', line 5

def options
  @options
end

Instance Method Details

#idObject

int64 - Agent ID



13
14
15
# File 'lib/files.com/models/agent_v2_auth.rb', line 13

def id
  @attributes[:id]
end

#nonceObject

string - authentication nonce



18
19
20
# File 'lib/files.com/models/agent_v2_auth.rb', line 18

def nonce
  @attributes[:nonce]
end

#site_idObject

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

#statusObject

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