Class: Conductor::Http::Models::CacheConfig

Inherits:
BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#keyObject

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_secondObject

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