Class: Maestrano::Connector::Rails::External

Inherits:
Object
  • Object
show all
Includes:
Concerns::External
Defined in:
lib/generators/connector/templates/external.rb,
app/models/maestrano/connector/rails/external.rb

Class Method Summary collapse

Class Method Details



21
22
23
24
25
# File 'lib/generators/connector/templates/external.rb', line 21

def self.(organization = nil)
  # TODO
  # Returns a link to the sign up page of the external application
  '#'
end

.entities_listObject

Return an array of all the entities that the connector can synchronize If you add new entities, you need to generate a migration to add them to existing organizations



30
31
32
33
34
35
36
# File 'lib/generators/connector/templates/external.rb', line 30

def self.entities_list
  # TODO
  # The names in this list should match the names of your entities class
  # e.g %w(person, tasks_list)
  #  will synchronized Entities::Person and Entities::TasksList
  []
end

.external_nameObject



5
6
7
8
# File 'lib/generators/connector/templates/external.rb', line 5

def self.external_name
  # TODO
  # Returns the name of the external app
end

.get_client(organization) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/generators/connector/templates/external.rb', line 10

def self.get_client(organization)
  # TODO
  # Returns a client for the external application for the given organization
  # e.g
  # SomeName.new :oauth_token => organization.oauth_token,
  # refresh_token: organization.refresh_token,
  # instance_url: organization.instance_url,
  # client_id: ENV[''],
  # client_secret: ENV['']
end