Module: BacklogJp
- Defined in:
- lib/backlog_jp/client.rb,
lib/backlog_jp/_version.rb,
lib/backlog_jp/configuration.rb
Defined Under Namespace
Modules: Common Classes: Client, Configuration, Project
Constant Summary collapse
- VERSION =
"0.0.6"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
-
.client ⇒ Object
Returns a Client with configuration.
-
.configure {|configuration| ... } ⇒ Object
Sets configuration with a block.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
7 8 9 |
# File 'lib/backlog_jp/configuration.rb', line 7 def configuration @configuration end |
Class Method Details
.client ⇒ Object
Returns a Client with configuration.
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/backlog_jp/client.rb', line 22 def self.client @client ||= Client.new_from_hash( host: "#{configuration.space}.backlog.jp", path: "/XML-RPC", port: 443, use_ssl: true, user: configuration.username, password: configuration.password, ) end |
.configure {|configuration| ... } ⇒ Object
Sets configuration with a block.
10 11 12 13 14 |
# File 'lib/backlog_jp/configuration.rb', line 10 def configure &block self.configuration ||= Configuration.new yield configuration configuration end |