Class: Rufus::RTM::List
- Inherits:
-
MilkResource
- Object
- MilkResource
- Rufus::RTM::List
- Defined in:
- lib/rufus/rtm/resources.rb
Instance Attribute Summary collapse
-
#list_id ⇒ Object
readonly
Returns the value of attribute list_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(h) ⇒ List
constructor
A new instance of List.
Methods inherited from MilkResource
Constructor Details
#initialize(h) ⇒ List
Returns a new instance of List.
264 265 266 267 268 |
# File 'lib/rufus/rtm/resources.rb', line 264 def initialize (h) super @list_id = h['id'] end |
Instance Attribute Details
#list_id ⇒ Object (readonly)
Returns the value of attribute list_id.
258 259 260 |
# File 'lib/rufus/rtm/resources.rb', line 258 def list_id @list_id end |
Class Method Details
.find(params = {}) ⇒ Object
270 271 272 273 274 275 |
# File 'lib/rufus/rtm/resources.rb', line 270 def self.find (params={}) execute('getList', params)[resource_name]['list'].collect do |h| self.new(h) end end |