summaryrefslogtreecommitdiff
path: root/sample/soap/calc/calc.rb
blob: 6bc78803b37a510eba4222c7d31f7a855946a504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module CalcService
  def self.add(lhs, rhs)
    lhs + rhs
  end

  def self.sub(lhs, rhs)
    lhs - rhs
  end

  def self.multi(lhs, rhs)
    lhs * rhs
  end

  def self.div(lhs, rhs)
    lhs / rhs
  end
end