Class: SalsaLabs::Supporter

Inherits:
SalsaObject show all
Defined in:
lib/salsa_labs/supporter.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



11
12
13
14
15
# File 'lib/salsa_labs/supporter.rb', line 11

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

Instance Method Details

#emailObject



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

def email
  attributes['email']
end

#supporter_keyObject



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

def supporter_key
  attributes['supporter_key'].to_i
end