Class: AliyunSlsSdk::GetLogStoreResponse

Inherits:
LogResponse show all
Defined in:
lib/aliyun_sls_sdk/get_log_store_response.rb

Instance Attribute Summary collapse

Attributes inherited from LogResponse

#all_headers, #request_id

Instance Method Summary collapse

Methods inherited from LogResponse

#get_header

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_nameObject

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_countObject

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

#ttlObject

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