Module: GoodGuide::Accounts::IssuePreferences

Included in:
Base
Defined in:
lib/goodguide/accounts/issue_preferences.rb

Instance Method Summary collapse

Instance Method Details

#issue_preferencesObject



5
6
7
# File 'lib/goodguide/accounts/issue_preferences.rb', line 5

def issue_preferences
  @issue_preferences ||= get(:issue_preferences)['issue_preferences']
end

#update_issue_preferences(prefs) ⇒ Object



9
10
11
12
# File 'lib/goodguide/accounts/issue_preferences.rb', line 9

def update_issue_preferences(prefs)
  @issue_preferences = nil
  put(:issue_preferences, :issue_preferences => prefs)
end