Class: SalsaLabs::SupporterAction

Inherits:
SalsaObject show all
Defined in:
lib/salsa_labs/supporter_action.rb

Instance Attribute Summary

Attributes inherited from SalsaObject

#attributes

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SalsaObject

#initialize, #organization_key

Constructor Details

This class inherits a constructor from SalsaLabs::SalsaObject

Class Method Details

.fetch(credentials = {}) ⇒ Object



15
16
17
18
19
# File 'lib/salsa_labs/supporter_action.rb', line 15

def self.fetch(credentials = {})
  ObjectsFetcher.fetch(type: 'supporter_action',
                       item_class: self,
                       credentials: credentials)
end

Instance Method Details

#action_keyObject



7
8
9
# File 'lib/salsa_labs/supporter_action.rb', line 7

def action_key
  attributes['action_key'].to_i if attributes['action_key']
end

#supporter_action_keyObject



11
12
13
# File 'lib/salsa_labs/supporter_action.rb', line 11

def supporter_action_key
  attributes['supporter_action_key'].to_i if attributes['supporter_action_key']
end

#supporter_keyObject



3
4
5
# File 'lib/salsa_labs/supporter_action.rb', line 3

def supporter_key
  attributes['supporter_key'].to_i if attributes['supporter_key']
end