class Passworks::Client

Client is the HTTP API Wrapper to comunicate with the Passworks API

Public Class Methods

new(params={}) click to toggle source
# File lib/passworks/client.rb, line 10
def initialize(params={})
  Configuration::VALID_CONFIG_KEYS.each do |key|
    self.instance_variable_set(:"@#{key}", params[key])
  end
end

Public Instance Methods

inspect() click to toggle source
Calls superclass method
# File lib/passworks/client.rb, line 44
def inspect
  inspected = super
  inspected.gsub!(/\@api_secret=(.+)/){ "@api_secret=\"**********\"" }
  inspected
end
same_options?(options) click to toggle source

Check if the current {Client} instance options are equal to the passed ones @param options [Hash] options @return [Boolean]

# File lib/passworks/client.rb, line 19
def same_options?(options)
  self.options == options
end