Class: ServerDensity::Server
- Inherits:
-
Object
- Object
- ServerDensity::Server
- Defined in:
- lib/server_density.rb
Instance Attribute Summary collapse
-
#agent_key ⇒ Object
readonly
Returns the value of attribute agent_key.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
Instance Method Summary collapse
-
#initialize(data) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(data) ⇒ Server
Returns a new instance of Server.
26 27 28 29 30 |
# File 'lib/server_density.rb', line 26 def initialize(data) @id = data['serverId'] @ip = data['ip'] @agent_key = data['agentKey'] end |
Instance Attribute Details
#agent_key ⇒ Object (readonly)
Returns the value of attribute agent_key.
25 26 27 |
# File 'lib/server_density.rb', line 25 def agent_key @agent_key end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
25 26 27 |
# File 'lib/server_density.rb', line 25 def id @id end |
#ip ⇒ Object (readonly)
Returns the value of attribute ip.
25 26 27 |
# File 'lib/server_density.rb', line 25 def ip @ip end |