Class: MilkCap::RTM::List
- Inherits:
-
MilkResource
- Object
- MilkResource
- MilkCap::RTM::List
- Defined in:
- lib/milk_cap/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.
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_id ⇒ Object (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 |