Class: Saorin::Test::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/saorin/test.rb

Instance Method Summary collapse

Instance Method Details

#get_dataObject



34
35
36
# File 'lib/saorin/test.rb', line 34

def get_data
  ['hello', 5]
end

#identity(value) ⇒ Object



10
11
12
# File 'lib/saorin/test.rb', line 10

def identity(value)
  value
end

#notify_hello(a) ⇒ Object



30
31
32
# File 'lib/saorin/test.rb', line 30

def notify_hello(a)
  'OK'
end

#notify_sum(a, b, c) ⇒ Object



38
39
40
# File 'lib/saorin/test.rb', line 38

def notify_sum(a, b, c)
  a + b + c
end

#subtract1(a, b) ⇒ Object



14
15
16
# File 'lib/saorin/test.rb', line 14

def subtract1(a, b)
  a - b
end

#subtract2(options) ⇒ Object



18
19
20
# File 'lib/saorin/test.rb', line 18

def subtract2(options)
  options['minuend'] - options['subtrahend']
end

#sum(a, b, c) ⇒ Object



26
27
28
# File 'lib/saorin/test.rb', line 26

def sum(a, b, c)
  a + b + c
end

#update(a, b, c, d, e) ⇒ Object



22
23
24
# File 'lib/saorin/test.rb', line 22

def update(a, b, c, d, e)
  'OK'
end