Class: Tinybucket::Resource::Projects
- Defined in:
- lib/tinybucket/resource/projects.rb
Instance Attribute Summary collapse
-
#owner ⇒ Object
Returns the value of attribute owner.
Instance Method Summary collapse
-
#create(_params) ⇒ Object
Create a new project.
-
#find(project_key, options = {}) ⇒ Tinybucket::Model::Project
Find the project.
-
#initialize(owner_name, options = {}) ⇒ Projects
constructor
Initialize.
Constructor Details
#initialize(owner_name, options = {}) ⇒ Projects
Initialize
12 13 14 15 |
# File 'lib/tinybucket/resource/projects.rb', line 12 def initialize(owner_name, = {}) @owner = owner_name @args = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Tinybucket::Resource::Base
Instance Attribute Details
#owner ⇒ Object
Returns the value of attribute owner.
6 7 8 |
# File 'lib/tinybucket/resource/projects.rb', line 6 def owner @owner end |
Instance Method Details
#create(_params) ⇒ Object
Create a new project
NOTE: Not Implemented yet.
32 33 34 |
# File 'lib/tinybucket/resource/projects.rb', line 32 def create(_params) raise NotImplementedError end |
#find(project_key, options = {}) ⇒ Tinybucket::Model::Project
Find the project
22 23 24 |
# File 'lib/tinybucket/resource/projects.rb', line 22 def find(project_key, = {}) projects_api.find(project_key, ) end |