Sha256: b110506b32e88800420cb7bb7e069945c7ecffc95b39857e250e108817175597
Contents?: true
Size: 509 Bytes
Versions: 4
Compression:
Stored size: 509 Bytes
Contents
# -*- encoding: utf-8 -*- module NissenCollect class Pdrequest attr_accessor :body @@transaction_path = 'direct/autotransaction.do' # @bodyを初期化する # @param [Hash] body 生成時引数 def initialize body=nil @body = body ? body : [SHOPINFO,TRANSACTION,PDREQUEST].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