Class: Conductor::Http::Models::PollData

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/conductor/http/models/poll_data.rb

Overview

Poll data for a task queue

Constant Summary collapse

SWAGGER_TYPES =
{
  queue_name: 'String',
  domain: 'String',
  worker_id: 'String',
  last_poll_time: 'Integer'
}.freeze
ATTRIBUTE_MAP =
{
  queue_name: :queueName,
  domain: :domain,
  worker_id: :workerId,
  last_poll_time: :lastPollTime
}.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 = {}) ⇒ PollData

Returns a new instance of PollData.



24
25
26
27
28
29
# File 'lib/conductor/http/models/poll_data.rb', line 24

def initialize(params = {})
  @queue_name = params[:queue_name]
  @domain = params[:domain]
  @worker_id = params[:worker_id]
  @last_poll_time = params[:last_poll_time]
end

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



22
23
24
# File 'lib/conductor/http/models/poll_data.rb', line 22

def domain
  @domain
end

#last_poll_timeObject

Returns the value of attribute last_poll_time.



22
23
24
# File 'lib/conductor/http/models/poll_data.rb', line 22

def last_poll_time
  @last_poll_time
end

#queue_nameObject

Returns the value of attribute queue_name.



22
23
24
# File 'lib/conductor/http/models/poll_data.rb', line 22

def queue_name
  @queue_name
end

#worker_idObject

Returns the value of attribute worker_id.



22
23
24
# File 'lib/conductor/http/models/poll_data.rb', line 22

def worker_id
  @worker_id
end