Class: StashCoreAPI::Client
- Inherits:
-
Object
- Object
- StashCoreAPI::Client
- Includes:
- StashCoreAPI, Utils
- Defined in:
- lib/stash_core_api/client.rb
Overview
Client to interact with Atlassian Stash CoreAPI API
Constant Summary
Constants included from StashCoreAPI
Instance Attribute Summary collapse
-
#pass ⇒ Object
Returns the value of attribute pass.
-
#project ⇒ Object
Returns the value of attribute project.
-
#repository ⇒ Object
Returns the value of attribute repository.
-
#stash_url ⇒ Object
Returns the value of attribute stash_url.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Object
constructor
Initializes a new Client object.
Methods included from Compare
Methods included from PullRequests
Methods included from Commits
Constructor Details
#initialize(options = {}) ⇒ Object
Initializes a new Client object
18 19 20 21 22 |
# File 'lib/stash_core_api/client.rb', line 18 def initialize( = {}) .each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#pass ⇒ Object
Returns the value of attribute pass.
12 13 14 |
# File 'lib/stash_core_api/client.rb', line 12 def pass @pass end |
#project ⇒ Object
Returns the value of attribute project.
12 13 14 |
# File 'lib/stash_core_api/client.rb', line 12 def project @project end |
#repository ⇒ Object
Returns the value of attribute repository.
12 13 14 |
# File 'lib/stash_core_api/client.rb', line 12 def repository @repository end |
#stash_url ⇒ Object
Returns the value of attribute stash_url.
12 13 14 |
# File 'lib/stash_core_api/client.rb', line 12 def stash_url @stash_url end |
#user ⇒ Object
Returns the value of attribute user.
12 13 14 |
# File 'lib/stash_core_api/client.rb', line 12 def user @user end |