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