Class: StashCoreAPI::Client

Inherits:
Object
  • Object
show all
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

VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Compare

#compare_changes

Methods included from PullRequests

#can_merge?, #info

Methods included from Commits

#commit_changes, #commits

Constructor Details

#initialize(options = {}) ⇒ Object

Initializes a new Client object

Parameters:

  • options (Hash) (defaults to: {})


18
19
20
21
22
# File 'lib/stash_core_api/client.rb', line 18

def initialize(options = {})
  options.each do |key, value|
    instance_variable_set("@#{key}", value)
  end
end

Instance Attribute Details

#passObject

Returns the value of attribute pass.



12
13
14
# File 'lib/stash_core_api/client.rb', line 12

def pass
  @pass
end

#projectObject

Returns the value of attribute project.



12
13
14
# File 'lib/stash_core_api/client.rb', line 12

def project
  @project
end

#repositoryObject

Returns the value of attribute repository.



12
13
14
# File 'lib/stash_core_api/client.rb', line 12

def repository
  @repository
end

#stash_urlObject

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

#userObject

Returns the value of attribute user.



12
13
14
# File 'lib/stash_core_api/client.rb', line 12

def user
  @user
end