Class: BacklogApi::Client
- Inherits:
-
Object
- Object
- BacklogApi::Client
- 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
-
#client ⇒ Object
Returns the value of attribute client.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#space ⇒ Object
Returns the value of attribute space.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user = nil, password = nil, space = nil) ⇒ Client
constructor
A new instance of Client.
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) login_from_args(user, password, space) || login_from_netrc || login_from_environment_variables @client = XMLRPC::Client.new(@host, PATH, PORT, PROXY_HOST, PROXY_PORT, @user, @password, USE_SSL, TIMEOUT) end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
15 16 17 |
# File 'lib/backlog_api/client.rb', line 15 def client @client end |
#host ⇒ Object
Returns the value of attribute host.
15 16 17 |
# File 'lib/backlog_api/client.rb', line 15 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
15 16 17 |
# File 'lib/backlog_api/client.rb', line 15 def password @password end |
#space ⇒ Object
Returns the value of attribute space.
15 16 17 |
# File 'lib/backlog_api/client.rb', line 15 def space @space end |
#user ⇒ Object
Returns the value of attribute user.
15 16 17 |
# File 'lib/backlog_api/client.rb', line 15 def user @user end |