Class: Readapt::Message::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/readapt/message/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arguments, debugger) ⇒ Base

Returns a new instance of Base.



12
13
14
15
# File 'lib/readapt/message/base.rb', line 12

def initialize arguments, debugger
  @arguments = arguments
  @debugger = debugger
end

Instance Attribute Details

#argumentsHash (readonly)

Returns:

  • (Hash)


7
8
9
# File 'lib/readapt/message/base.rb', line 7

def arguments
  @arguments
end

#debuggerDebugger (readonly)

Returns:



10
11
12
# File 'lib/readapt/message/base.rb', line 10

def debugger
  @debugger
end

Class Method Details

.run(arguments, debugger) ⇒ Object



27
28
29
# File 'lib/readapt/message/base.rb', line 27

def self.run arguments, debugger
  new(arguments, debugger).run
end

Instance Method Details

#bodyObject



19
20
21
# File 'lib/readapt/message/base.rb', line 19

def body
  @body ||= {}
end

#runObject



17
# File 'lib/readapt/message/base.rb', line 17

def run; end

#set_body(hash) ⇒ Object



23
24
25
# File 'lib/readapt/message/base.rb', line 23

def set_body hash
  @body = hash
end