Class: AliyunSlsSdk::LogItem
- Inherits:
-
Object
- Object
- AliyunSlsSdk::LogItem
- Defined in:
- lib/aliyun_sls_sdk/log_item.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(timestamp, contents) ⇒ LogItem
constructor
contents is a hash.
Constructor Details
#initialize(timestamp, contents) ⇒ LogItem
contents is a hash
8 9 10 11 12 13 |
# File 'lib/aliyun_sls_sdk/log_item.rb', line 8 def initialize(, contents) if not @timestamp = Time.now.to_i end @contents = contents end |
Instance Attribute Details
#contents ⇒ Object
Returns the value of attribute contents.
6 7 8 |
# File 'lib/aliyun_sls_sdk/log_item.rb', line 6 def contents @contents end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/aliyun_sls_sdk/log_item.rb', line 6 def @timestamp end |