Class: APDM::Origo

Inherits:
Object
  • Object
show all
Defined in:
lib/apdm/origo.rb

Defined Under Namespace

Classes: API

Constant Summary collapse

APRESSEN =

Found in the Origo console with Organization.find_by_title(‘A-pressen’).children.map(&:id)

[29, 34, 35, 39, 40, 42, 44, 47, 56, 64, 67, 69, 82, 94, 95, 99, 134, 139, 154, 155, 162, 232, 242, 264, 287, 317, 386, 401, 420, 433, 456, 462, 597, 12455, 12617, 12733, 12735, 12737, 12802, 12886, 13036, 13038, 13041, 13042]
BENGLER =
[22]
ORGANIZATIONS =
APRESSEN + BENGLER

Class Method Summary collapse

Class Method Details

.apiObject



24
25
26
# File 'lib/apdm/origo.rb', line 24

def self.api
  @api ||= API.new
end

.fetch_credentials(id) ⇒ Object



20
21
22
# File 'lib/apdm/origo.rb', line 20

def self.fetch_credentials(id)
  api.fetch_credentials(id)
end

.organization?(id) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/apdm/origo.rb', line 16

def self.organization?(id)
  ORGANIZATIONS.include?(id)
end