lib/todoable_api/list.rb
# Create an array of TodoableApi::Item objects from the list
Create an array of TodoableApi::Item objects from the list
Create an array of TodoableApi :: Item objects from the list
def items
      reload if attributes["items"].nil?
      @memoized_items ||= attributes.fetch("items", []).map do |item|
        item["list_id"] = id
        TodoableApi::Item.new(item)
      end
      @memoized_items
    end
def items reload if attributes [ "items" ] . nil? @memoized_items ||= attributes . fetch ( "items" , [ ] ) . map do | item | item [ "list_id" ] = id TodoableApi :: Item . new ( item ) end @memoized_items end
Create an array of TodoableApi::Item objects from the list
Create an array of TodoableApi :: Item objects from the list