Class: Microclimate::Client
- Inherits:
-
Object
- Object
- Microclimate::Client
- Defined in:
- lib/microclimate/client.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #repository_for(repo_id) ⇒ Object
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
5 6 7 |
# File 'lib/microclimate/client.rb', line 5 def initialize() @api_token = [:api_token] end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
3 4 5 |
# File 'lib/microclimate/client.rb', line 3 def api_token @api_token end |
Instance Method Details
#repository_for(repo_id) ⇒ Object
9 10 11 |
# File 'lib/microclimate/client.rb', line 9 def repository_for(repo_id) Microclimate::Repository.new(self, :repo_id => repo_id) end |