Class: RelateIQ::ListItem

Inherits:
Resource show all
Defined in:
lib/relate_iq/list_item.rb

Class Method Summary collapse

Methods inherited from Resource

#initialize, #inspect, #method_missing

Constructor Details

This class inherits a constructor from RelateIQ::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RelateIQ::Resource

Class Method Details

.create(attributes) ⇒ Object



3
4
5
6
# File 'lib/relate_iq/list_item.rb', line 3

def self.create(attributes)
  list_id = attributes['listId'] || attributes[:listId]
  self.new(RelateIQ.post("lists/#{list_id}/listitems", attributes))
end