Sha256: 1b0b62abafa5e5d05ec79f1903385c0f668777b78e714f8d9ce74220653be652
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 Bytes
Contents
# -*- encoding: utf-8 -*- module NissenCollect class Pdrequest < Action attr_accessor :transaction,:pdrequest @@transaction_path = 'direct/autotransaction.do' # @bodyを初期化する # @param [Hash] body 生成時引数 def initialize super @transaction = Marshal.load(Marshal.dump(TRANSACTION)) @pdrequest = Marshal.load(Marshal.dump(PDREQUEST)) end # APIコールを行う def call body = [@@shopInfo,@transaction,@pdrequest].inject {|union,hash| union.merge hash} connect = NissenCollect::Client.new connect.request('get',@@transaction_path,body) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nissen-collect-0.1.7 | lib/nissen-collect/pdrequest.rb |
nissen-collect-0.1.6 | lib/nissen-collect/pdrequest.rb |