Sha256: 59a49cc639bff85819a61738359791c4a7527bc760e2a5db084e34bb00e6df47
Contents?: true
Size: 503 Bytes
Versions: 5
Compression:
Stored size: 503 Bytes
Contents
module Base module Apis class Category attr_reader :client_secret def initialize(client_secret) @client_secret = client_secret end def request uri = URI.join(API_HOST.to_s, "/#{API_VERSION}/categories?") 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
Version data entries
5 entries across 5 versions & 1 rubygems