Class: AbstractApplication

Inherits:
Podio::Application
  • Object
show all
Defined in:
app/models/abstract_application.rb

Class Method Summary collapse

Class Method Details

.app_exists?(appid) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
23
24
25
26
27
# File 'app/models/abstract_application.rb', line 20

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

.get_apps_list_by_space(spaceid) ⇒ Object



3
4
5
6
7
8
9
# File 'app/models/abstract_application.rb', line 3

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

.test_authentication?(user, pass) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
14
15
16
17
18
# File 'app/models/abstract_application.rb', line 11

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