Class: BacklogApi::Client

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

Constant Summary collapse

HOST =
'%s.backlog.jp'
PATH =
'/XML-RPC'
PORT =

HTTPS

'443'
PROXY_HOST =
nil
PROXY_PORT =
nil
USE_SSL =
true
TIMEOUT =
60
METHOD =
'backlog.%s'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user = nil, password = nil, space = nil) ⇒ Client

Returns a new instance of Client.



17
18
19
20
# File 'lib/backlog_api/client.rb', line 17

def initialize(user = nil , password = nil , space = nil)
  (user, password, space) ||  || 
  @client = XMLRPC::Client.new(@host, PATH, PORT, PROXY_HOST, PROXY_PORT, @user, @password, USE_SSL, TIMEOUT)
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



15
16
17
# File 'lib/backlog_api/client.rb', line 15

def client
  @client
end

#hostObject

Returns the value of attribute host.



15
16
17
# File 'lib/backlog_api/client.rb', line 15

def host
  @host
end

#passwordObject

Returns the value of attribute password.



15
16
17
# File 'lib/backlog_api/client.rb', line 15

def password
  @password
end

#spaceObject

Returns the value of attribute space.



15
16
17
# File 'lib/backlog_api/client.rb', line 15

def space
  @space
end

#userObject

Returns the value of attribute user.



15
16
17
# File 'lib/backlog_api/client.rb', line 15

def user
  @user
end