Class: Files::AgentPushUpdate
- Inherits:
-
Object
- Object
- Files::AgentPushUpdate
- Defined in:
- lib/files.com/models/agent_push_update.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
-
#current_version ⇒ Object
string - Installed agent version.
-
#error ⇒ Object
string - Error code.
-
#initialize(attributes = {}, options = {}) ⇒ AgentPushUpdate
constructor
A new instance of AgentPushUpdate.
-
#last_error ⇒ Object
string - Last error message or null.
-
#message ⇒ Object
string - Update accepted or reason.
-
#pending_version ⇒ Object
string - Pending agent version or null.
-
#version ⇒ Object
string - Pushed agent version.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ AgentPushUpdate
Returns a new instance of AgentPushUpdate.
7 8 9 10 |
# File 'lib/files.com/models/agent_push_update.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_push_update.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_push_update.rb', line 5 def @options end |
Instance Method Details
#current_version ⇒ Object
string - Installed agent version
23 24 25 |
# File 'lib/files.com/models/agent_push_update.rb', line 23 def current_version @attributes[:current_version] end |
#error ⇒ Object
string - Error code
38 39 40 |
# File 'lib/files.com/models/agent_push_update.rb', line 38 def error @attributes[:error] end |
#last_error ⇒ Object
string - Last error message or null
33 34 35 |
# File 'lib/files.com/models/agent_push_update.rb', line 33 def last_error @attributes[:last_error] end |
#message ⇒ Object
string - Update accepted or reason
18 19 20 |
# File 'lib/files.com/models/agent_push_update.rb', line 18 def @attributes[:message] end |
#pending_version ⇒ Object
string - Pending agent version or null
28 29 30 |
# File 'lib/files.com/models/agent_push_update.rb', line 28 def pending_version @attributes[:pending_version] end |
#version ⇒ Object
string - Pushed agent version
13 14 15 |
# File 'lib/files.com/models/agent_push_update.rb', line 13 def version @attributes[:version] end |