class HelpScout::Folder
Constants
- BASIC_ATTRIBUTES
Public Class Methods
new(params)
click to toggle source
# File lib/help_scout/folder.rb, line 34 def initialize(params) BASIC_ATTRIBUTES.each do |attribute| next unless params[attribute] instance_variable_set("@#{attribute}", params[attribute]) end end
Private Class Methods
base_path()
click to toggle source
# File lib/help_scout/folder.rb, line 10 def base_path 'mailboxes/%<MAILBOX_ID>/folders/' end
list_path(mailbox_id)
click to toggle source
# File lib/help_scout/folder.rb, line 14 def list_path(mailbox_id) replacements = { '%<MAILBOX_ID>' => mailbox_id } HelpScout::Util.parse_path(base_path, replacements) end