Sha256: e5701e0f49e8379d3fa64b9ff5075ba511edd87f8a032366011728831f9bd2ec
Contents?: true
Size: 647 Bytes
Versions: 2
Compression:
Stored size: 647 Bytes
Contents
require 'httparty' module Rlaunchpadlib class Client include HTTParty attr_accessor :base_uri attr_accessor :api_version def initialize() @base_uri = "https://api.launchpad.net" @api_version = "1.0" end def get(scope, operation="") if operation.empty? result = self.class.get "#{@base_uri}/#{@api_version}/#{scope}" result.to_hash() else result = self.class.get "#{@base_uri}/#{@api_version}/#{scope}/?ws.op=#{operation}" result.to_hash() end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rlaunchpadlib-0.1.0 | lib/rlaunchpadlib/client.rb |
rlaunchpadlib-0.0.1 | lib/rlaunchpadlib/client.rb |