Class: Rufus::RTM::List

Inherits:
MilkResource show all
Defined in:
lib/rufus/rtm/resources.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MilkResource

#save!

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_idObject (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