Module: HelpScout::Listable

Included in:
Conversation, Customer, Folder, Mailbox, User
Defined in:
lib/help_scout/modules/listable.rb

Instance Method Summary collapse

Instance Method Details

#list(id: HelpScout.default_mailbox, page: nil) ⇒ Object



5
6
7
# File 'lib/help_scout/modules/listable.rb', line 5

def list(id: HelpScout.default_mailbox, page: nil)
  HelpScout.api.get(list_path(id), page: page).embedded_list.map { |e| new e }
end

#list_path(_) ⇒ Object



9
10
11
# File 'lib/help_scout/modules/listable.rb', line 9

def list_path(_)
  base_path
end