Class: Scale::Callbacks::Task

Inherits:
Base
  • Object
show all
Defined in:
lib/scale/callbacks/task.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#json, #response

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

match?, #status_code

Constructor Details

#initialize(json) ⇒ Task

Returns a new instance of Task.



6
7
8
9
# File 'lib/scale/callbacks/task.rb', line 6

def initialize(json)
  super
  build_task
end

Instance Attribute Details

#taskObject (readonly)

Returns the value of attribute task.



4
5
6
# File 'lib/scale/callbacks/task.rb', line 4

def task
  @task
end

Class Method Details

.shortcutObject



11
12
13
# File 'lib/scale/callbacks/task.rb', line 11

def self.shortcut
  'task'
end