Class: Server
- Inherits:
-
Object
- Object
- Server
- Defined in:
- lib/rscalr/model/server.rb
Instance Attribute Summary collapse
-
#external_ip ⇒ Object
Returns the value of attribute external_ip.
-
#index ⇒ Object
Returns the value of attribute index.
-
#internal_ip ⇒ Object
Returns the value of attribute internal_ip.
-
#role ⇒ Object
Returns the value of attribute role.
-
#server_id ⇒ Object
Returns the value of attribute server_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#uptime ⇒ Object
Returns the value of attribute uptime.
Instance Method Summary collapse
Instance Attribute Details
#external_ip ⇒ Object
Returns the value of attribute external_ip.
2 3 4 |
# File 'lib/rscalr/model/server.rb', line 2 def external_ip @external_ip end |
#index ⇒ Object
Returns the value of attribute index.
2 3 4 |
# File 'lib/rscalr/model/server.rb', line 2 def index @index end |
#internal_ip ⇒ Object
Returns the value of attribute internal_ip.
2 3 4 |
# File 'lib/rscalr/model/server.rb', line 2 def internal_ip @internal_ip end |
#role ⇒ Object
Returns the value of attribute role.
2 3 4 |
# File 'lib/rscalr/model/server.rb', line 2 def role @role end |
#server_id ⇒ Object
Returns the value of attribute server_id.
2 3 4 |
# File 'lib/rscalr/model/server.rb', line 2 def server_id @server_id end |
#status ⇒ Object
Returns the value of attribute status.
2 3 4 |
# File 'lib/rscalr/model/server.rb', line 2 def status @status end |
#uptime ⇒ Object
Returns the value of attribute uptime.
2 3 4 |
# File 'lib/rscalr/model/server.rb', line 2 def uptime @uptime end |
Instance Method Details
#to_s ⇒ Object
4 5 6 |
# File 'lib/rscalr/model/server.rb', line 4 def to_s "{ type: \"server\", id: \"#{@server_id}\", external_ip: \"#{@external_ip}\", internal_ip: \"#{@internal_ip}\", role: #{@role} }" end |