class NCMB::Increment

Public Class Methods

new(amount = 1) click to toggle source
# File lib/ncmb/increment.rb, line 7
def initialize(amount = 1)
  @amount = amount
end

Public Instance Methods

amount() click to toggle source
# File lib/ncmb/increment.rb, line 15
def amount
  @amount
end
to_json(a) click to toggle source
# File lib/ncmb/increment.rb, line 11
def to_json(a)
  "{\"__op\": \"Increment\", \"amount\": #{@amount}}"
end