class Mypeople::Configuration
Constants
- CONFIGURABLE_ATTRIBUTES
Public Class Methods
configurable_attributes()
click to toggle source
# File lib/mypeople/client.rb, line 15 def self.configurable_attributes CONFIGURABLE_ATTRIBUTES end
new(attrs = {})
click to toggle source
# File lib/mypeople/client.rb, line 19 def initialize(attrs = {}) self.attributes = attrs end
Public Instance Methods
attributes=(attrs = {})
click to toggle source
# File lib/mypeople/client.rb, line 23 def attributes=(attrs = {}) attrs.each { |key, value| instance_variable_set("@#{key}", value) } end
data()
click to toggle source
# File lib/mypeople/client.rb, line 35 def data @data = {"apikey" => @key} end
http()
click to toggle source
# File lib/mypeople/client.rb, line 27 def http uri = URI.parse(self.host) @http ||= Net::HTTP.new(uri.host, uri.port) @http.use_ssl = true @http.verify_mode = OpenSSL::SSL::VERIFY_NONE @http end