Class: Kanbantastic::Config

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/kanbantastic/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, workspace, project_id) ⇒ Config

Returns a new instance of Config.



8
9
10
11
12
13
# File 'lib/kanbantastic/config.rb', line 8

def initialize(api_key, workspace, project_id)
  @api_key = api_key
  @workspace = workspace
  @project_id = project_id
  self.valid?
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



5
6
7
# File 'lib/kanbantastic/config.rb', line 5

def api_key
  @api_key
end

#project_idObject (readonly)

Returns the value of attribute project_id.



5
6
7
# File 'lib/kanbantastic/config.rb', line 5

def project_id
  @project_id
end

#workspaceObject (readonly)

Returns the value of attribute workspace.



5
6
7
# File 'lib/kanbantastic/config.rb', line 5

def workspace
  @workspace
end