Class: Kanbantastic::Config
- Inherits:
-
Object
- Object
- Kanbantastic::Config
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/kanbantastic/config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#project_id ⇒ Object
readonly
Returns the value of attribute project_id.
-
#workspace ⇒ Object
readonly
Returns the value of attribute workspace.
Instance Method Summary collapse
-
#initialize(api_key, workspace, project_id) ⇒ Config
constructor
A new instance of Config.
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_key ⇒ Object (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_id ⇒ Object (readonly)
Returns the value of attribute project_id.
5 6 7 |
# File 'lib/kanbantastic/config.rb', line 5 def project_id @project_id end |
#workspace ⇒ Object (readonly)
Returns the value of attribute workspace.
5 6 7 |
# File 'lib/kanbantastic/config.rb', line 5 def workspace @workspace end |