class NissenCollect::Getauthor

Attributes

transaction[RW]

Public Class Methods

new() click to toggle source

@bodyを初期化する @param [Hash] body 生成時引数

Calls superclass method NissenCollect::Action::new
# File lib/nissen-collect/getauthor.rb, line 9
def initialize
  super
  @transaction = Marshal.load(Marshal.dump(TRANSACTION))
end

Public Instance Methods

call() click to toggle source

APIコールを行う

# File lib/nissen-collect/getauthor.rb, line 15
def call
  body = [@@shopInfo,@transaction].inject {|union,hash| union.merge hash}
  connect = NissenCollect::Client.new
  connect.request('get',@@transaction_path,body)
end