Class: MilkCap::RTM::List

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ List

Returns a new instance of List.



248
249
250
251
252
# File 'lib/milk_cap/rtm/resources.rb', line 248

def initialize (h)

  super
  @list_id = h['id']
end

Instance Attribute Details

#list_idObject (readonly)

Returns the value of attribute list_id.



242
243
244
# File 'lib/milk_cap/rtm/resources.rb', line 242

def list_id
  @list_id
end

Class Method Details

.find(params = {}) ⇒ Object



254
255
256
257
258
259
# File 'lib/milk_cap/rtm/resources.rb', line 254

def self.find (params={})

  execute('getList', params)[resource_name]['list'].collect do |h|
    self.new(h)
  end
end