Sha256: dcc4ecee9b622e65ce00a5bd43d2722d4b02a6b2c36c93d70e00e24b86501d8a

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 Bytes

Contents

# -*- encoding: utf-8 -*-
module NissenCollect

  class Cancel
    attr_accessor :body
    @@transaction_path = 'direct/autocancel.do'

    # @bodyを初期化する
    # @param [Hash] body 生成時引数
    def initialize body=nil
      @body = body ? body : [SHOPINFO,TRANSACTION].inject {|union,hash| union.merge hash}
    end

    # APIコールを行う
    def call
      connect = NissenCollect::Client.new
      connect.request('get',@@transaction_path,@body)
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nissen-collect-0.1.4 lib/nissen-collect/cancel.rb
nissen-collect-0.1.3 lib/nissen-collect/cancel.rb
nissen-collect-0.1.2 lib/nissen-collect/cancel.rb
nissen-collect-0.1.1 lib/nissen-collect/cancel.rb