Method: RelateIq::List#initialize

Defined in:
lib/relateiq/list.rb

#initialize(attrs = {}) ⇒ List

Returns a new instance of List.



9
10
11
12
13
14
15
# File 'lib/relateiq/list.rb', line 9

def initialize(attrs = {})
  if attrs.key? :listType
    initialize_from_api(attrs)
  else
    initialize_from_user(attrs)
  end
end