Sha256: 3adae0a6a45cbf4ea5bfdf4812986cd6ef53a61114da6eb6696d0825a175ea3b

Contents?: true

Size: 564 Bytes

Versions: 2

Compression:

Stored size: 564 Bytes

Contents

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

  class Getauthor < Action
    attr_accessor :transaction
    @@transaction_path = 'direct/autogetauthor.do'

    # @bodyを初期化する
    # @param [Hash] body 生成時引数
    def initialize
      super
      @transaction = Marshal.load(Marshal.dump(TRANSACTION))
    end

    # APIコールを行う
    def call
      body = [@@shopInfo,@transaction].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.8 lib/nissen-collect/getauthor.rb
nissen-collect-0.1.7 lib/nissen-collect/getauthor.rb