Sha256: 3b6de01cb7fd2e7b6b616982a7a4c4c9c251c7583adfc5eb86f86572c1c37216

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 Bytes

Contents

class AbstractApplication < Podio::Application

  def self.get_apps_list_by_space(spaceid)
    begin
      Podio::Application.find_all_for_space(spaceid)
    rescue
      []
    end
  end

  def self.test_authentication?(user, pass)
    begin
      Podio.client.authenticate_with_credentials(user, pass)
      return true
    rescue
      return false
    end
  end

  def self.app_exists?(appid)
    begin
      Podio::Application.find(appid)
      return true
    rescue
      return false
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rxcms-podio_plugin-0.4.0 app/models/abstract_application.rb
rxcms-podio_plugin-0.3.0 app/models/abstract_application.rb