class RakutenRms::Client::Item
Public Class Methods
new(configuration)
click to toggle source
# File lib/rakuten_rms/client/item.rb, line 4 def initialize(configuration) @configuration = configuration end
Public Instance Methods
item_get(params = {})
click to toggle source
# File lib/rakuten_rms/client/item.rb, line 8 def item_get(params = {}) response = client.get "#{BASE_PATH}/item/get", params Response.new(response) end
Private Instance Methods
client()
click to toggle source
# File lib/rakuten_rms/client/item.rb, line 16 def client Faraday.new(url: BASE_URL) do |faraday| faraday.adapter Faraday.default_adapter faraday.headers['Authorization'] = @configuration.authorization end end