Class: AliyunSlsSdk::GetLogStoreResponse
- Inherits:
-
LogResponse
- Object
- LogResponse
- AliyunSlsSdk::GetLogStoreResponse
- Defined in:
- lib/aliyun_sls_sdk/get_log_store_response.rb
Instance Attribute Summary collapse
-
#logstore_name ⇒ Object
Returns the value of attribute logstore_name.
-
#shard_count ⇒ Object
Returns the value of attribute shard_count.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Attributes inherited from LogResponse
Instance Method Summary collapse
-
#initialize(resp, header) ⇒ GetLogStoreResponse
constructor
A new instance of GetLogStoreResponse.
Methods inherited from LogResponse
Constructor Details
#initialize(resp, header) ⇒ GetLogStoreResponse
Returns a new instance of GetLogStoreResponse.
5 6 7 8 9 10 11 |
# File 'lib/aliyun_sls_sdk/get_log_store_response.rb', line 5 def initialize(resp, header) super(header) puts resp @logstore_name = resp["logstoreName"] @ttl = resp["ttl"] ? resp["ttl"].to_i : 0 @shard_count = resp["shardCount"] ? resp["shardCount"].to_i : 0 end |
Instance Attribute Details
#logstore_name ⇒ Object
Returns the value of attribute logstore_name.
4 5 6 |
# File 'lib/aliyun_sls_sdk/get_log_store_response.rb', line 4 def logstore_name @logstore_name end |
#shard_count ⇒ Object
Returns the value of attribute shard_count.
4 5 6 |
# File 'lib/aliyun_sls_sdk/get_log_store_response.rb', line 4 def shard_count @shard_count end |
#ttl ⇒ Object
Returns the value of attribute ttl.
4 5 6 |
# File 'lib/aliyun_sls_sdk/get_log_store_response.rb', line 4 def ttl @ttl end |