Sha256: 342c21bd921e9443bd45209a94e6ba899baeab66f77fe9504837f719f29eae51

Contents?: true

Size: 1.1 KB

Versions: 43

Compression:

Stored size: 1.1 KB

Contents

# frozen_string_literal: true
class Maestrano::Connector::Rails::External
  include Maestrano::Connector::Rails::Concerns::External

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

  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

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

  # 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
  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
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.0.2.pre.RC5 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.2.pre.RC4 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.2.pre.RC3 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.2.pre.RC2 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.2.pre.RC1 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.1 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC13 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC12 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC11 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC10 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC9 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC8 lib/generators/connector/templates/external.rb
maestrano-connector-rails-1.5.0 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC7 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC6 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC5 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC4 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC3 lib/generators/connector/templates/external.rb
maestrano-connector-rails-2.0.0.pre.RC2 lib/generators/connector/templates/external.rb