Class: Taskit::Tasks
- Inherits:
-
Object
- Object
- Taskit::Tasks
- Defined in:
- lib/taskit/tasks.rb
Overview
Tasks object holds and returns information on open issues
Instance Attribute Summary collapse
-
#issues ⇒ Object
readonly
Returns the value of attribute issues.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Tasks
constructor
A new instance of Tasks.
- #to_s ⇒ Object (also: #inspect)
Methods included from Filters
#by_label, #respond_to?, #select
Constructor Details
#initialize(params = {}) ⇒ Tasks
Returns a new instance of Tasks.
24 25 26 27 28 |
# File 'lib/taskit/tasks.rb', line 24 def initialize(params = {}) @options = params @client = params[:client] @issues = params[:issues] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Taskit::Filters
Instance Attribute Details
#issues ⇒ Object (readonly)
Returns the value of attribute issues.
22 23 24 |
# File 'lib/taskit/tasks.rb', line 22 def issues @issues end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
36 37 38 |
# File 'lib/taskit/tasks.rb', line 36 def to_s "<Taskit::Tasks for #{client.login}>" end |