Class: Progresso::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/progresso/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(subdomain, username, password) ⇒ Client

Returns a new instance of Client.



9
10
11
12
13
# File 'lib/progresso/client.rb', line 9

def initialize(subdomain, username, password)
  @url = "https://#{subdomain}.progresso.net/v2"
  @username = username
  @password = URI.encode(password)
end