Class: Backlog4r::Client
- Inherits:
-
XMLRPC::Client::Proxy
- Object
- XMLRPC::Client::Proxy
- Backlog4r::Client
- Defined in:
- lib/backlog4r/client.rb
Instance Method Summary collapse
-
#initialize(space_name, user_id, password, prefix) ⇒ Client
constructor
A new instance of Client.
- #method_missing(action, *args) ⇒ Object
Constructor Details
#initialize(space_name, user_id, password, prefix) ⇒ Client
Returns a new instance of Client.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/backlog4r/client.rb', line 8 def initialize(space_name, user_id, password, prefix) space_uri = URI.parse("https://#{space_name}.backlog.jp/XML-RPC") proxy_host = proxy_port = nil use_ssl = true timeout = 5 server = XMLRPC::Client.new(space_uri.host, space_uri.path, space_uri.port, proxy_host, proxy_port, user_id, password, use_ssl, timeout, ) super(server, prefix) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(action, *args) ⇒ Object
27 28 29 30 |
# File 'lib/backlog4r/client.rb', line 27 def method_missing(action, *args) action = action.to_s.camelize(:lower).to_sym super end |