Sha256: cfb6bb06325812582b05972536bfee373dc412b355033eda1eec80889217333e
Contents?: true
Size: 630 Bytes
Versions: 5
Compression:
Stored size: 630 Bytes
Contents
module Base module Apis module ItemCategory class Detail attr_reader :client_secret def initialize(client_secret) @client_secret = client_secret end def request(item_id) uri = URI.join( API_HOST.to_s, "/#{API_VERSION}/item_categories/detail/#{item_id}") request = Net::HTTP::Get.new(uri, client_secret.header_parameter) Net::HTTP.start( uri.hostname, uri.port, use_ssl: uri.scheme == 'https') { |http| http.request(request) } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems