Class: Log

Inherits:
Object
  • Object
show all
Defined in:
lib/rscalr/model/log.rb

Direct Known Subclasses

ScriptLog, ServerLog

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message.



2
3
4
# File 'lib/rscalr/model/log.rb', line 2

def message
  @message
end

#server_idObject

Returns the value of attribute server_id.



2
3
4
# File 'lib/rscalr/model/log.rb', line 2

def server_id
  @server_id
end

#timestampObject

Returns the value of attribute timestamp.



2
3
4
# File 'lib/rscalr/model/log.rb', line 2

def timestamp
  @timestamp
end

Instance Method Details

#to_sObject



4
5
6
# File 'lib/rscalr/model/log.rb', line 4

def to_s
  "{ type: \"log\", server_id: \"#{@server_id}\", message: \"#{@message}\", timestamp: #{@timestamp} }"
end