class SalsaLabs::Action
Action
represents a single instance of an advocacy campaign (“Action”) in the Salsa Labs / DemocracyInAction CRM.
Public Class Methods
fetch(credentials = {})
click to toggle source
# File lib/salsa_labs/action.rb, line 27 def self.fetch(credentials = {}) ObjectsFetcher.fetch(type: 'Action', item_class: self, credentials: credentials) end
Public Instance Methods
action_key()
click to toggle source
# File lib/salsa_labs/action.rb, line 7 def action_key (attributes['action_key'] || 0).to_i end
chapter_key()
click to toggle source
# File lib/salsa_labs/action.rb, line 11 def chapter_key attributes['chapter_key'].to_i if attributes['chapter_key'] end
description()
click to toggle source
# File lib/salsa_labs/action.rb, line 15 def description attributes['description'] end
reference_name()
click to toggle source
# File lib/salsa_labs/action.rb, line 19 def reference_name attributes['reference_name'] end
title()
click to toggle source
# File lib/salsa_labs/action.rb, line 23 def title attributes['title'] end