class Tinybucket::Resource::Projects
Attributes
owner[RW]
Public Class Methods
new(owner_name, options = {})
click to toggle source
Initialize
@param owner_name [String] @param options [Hash]
# File lib/tinybucket/resource/projects.rb, line 12 def initialize(owner_name, options = {}) @owner = owner_name @args = [options] end
Public Instance Methods
create(_params)
click to toggle source
Create a new project
NOTE: Not Implemented yet.
@param _params [Hash] @raise [NotImplementedError] to be implemented
# File lib/tinybucket/resource/projects.rb, line 32 def create(_params) raise NotImplementedError end
find(project_key, options = {})
click to toggle source
Find the project
@param project_key [String] @param options [Hash] @return [Tinybucket::Model::Project]
# File lib/tinybucket/resource/projects.rb, line 22 def find(project_key, options = {}) projects_api.find(project_key, options) end
Private Instance Methods
enumerator()
click to toggle source
# File lib/tinybucket/resource/projects.rb, line 44 def enumerator create_enumerator(projects_api, :list, *@args) end
projects_api()
click to toggle source
# File lib/tinybucket/resource/projects.rb, line 38 def projects_api create_api('Projects').tap do |api| api.owner = @owner end end