Class: Conductor::Http::Models::CacheConfig
- Defined in:
- lib/conductor/http/models/workflow_task.rb
Overview
Cache configuration for tasks
Constant Summary collapse
- SWAGGER_TYPES =
{ key: 'String', ttl_in_second: 'Integer' }.freeze
- ATTRIBUTE_MAP =
{ key: :key, ttl_in_second: :ttlInSecond }.freeze
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#ttl_in_second ⇒ Object
Returns the value of attribute ttl_in_second.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ CacheConfig
constructor
A new instance of CacheConfig.
Methods inherited from BaseModel
attribute_map, deserialize_model, deserialize_value, find_model_class, from_hash, from_json, parse_datetime, swagger_types, #to_h, #to_json
Constructor Details
#initialize(params = {}) ⇒ CacheConfig
Returns a new instance of CacheConfig.
136 137 138 139 |
# File 'lib/conductor/http/models/workflow_task.rb', line 136 def initialize(params = {}) @key = params[:key] @ttl_in_second = params[:ttl_in_second] end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
134 135 136 |
# File 'lib/conductor/http/models/workflow_task.rb', line 134 def key @key end |
#ttl_in_second ⇒ Object
Returns the value of attribute ttl_in_second.
134 135 136 |
# File 'lib/conductor/http/models/workflow_task.rb', line 134 def ttl_in_second @ttl_in_second end |