Class: RIQ::ListItemManager

Inherits:
BatchManager show all
Defined in:
lib/riq/list_item_manager.rb

Overview

Special child for initializing list items, who need to include extra info.

Instance Attribute Summary

Attributes inherited from BatchManager

#fetch_options

Instance Method Summary collapse

Methods inherited from BatchManager

#each, #first

Constructor Details

#initialize(lid, opts = {}) ⇒ ListItemManager

Returns a new instance of ListItemManager.

Raises:



7
8
9
10
11
# File 'lib/riq/list_item_manager.rb', line 7

def initialize(lid, opts = {})
  raise RIQError, 'List id can\'t be nil' if lid.nil?
  @list_id = lid
  super(RIQ::ListItem, opts)
end