Class: Freshdesk::Util::Client

Inherits:
Object
  • Object
show all
Includes:
Authenticable, Request, HTTParty
Defined in:
lib/freshdesk/api/v2/util/client.rb

Instance Method Summary collapse

Methods included from Request

#delete, #get, #post, #put

Methods included from Authenticable

#credentials

Constructor Details

#initialize(attrs = {}) ⇒ Client

Returns a new instance of Client.



12
13
14
15
16
# File 'lib/freshdesk/api/v2/util/client.rb', line 12

def initialize(attrs={})
  attrs.each do |key, value|
    instance_variable_set("@#{key}".to_sym, value)
  end
end