Class: Facebooker::BeboAdapter

Inherits:
AdapterBase show all
Defined in:
lib/facebooker/adapters/bebo_adapter.rb

Instance Method Summary collapse

Methods inherited from AdapterBase

#api_server_base_url, default_adapter, #facebook_path_prefix, #facebook_path_prefix=, #facebooker_config, facebooker_config, #initialize, load_adapter

Constructor Details

This class inherits a constructor from Facebooker::AdapterBase

Instance Method Details

#api_rest_pathObject



12
13
14
# File 'lib/facebooker/adapters/bebo_adapter.rb', line 12

def api_rest_path
  "/restserver.php"
end

#api_server_baseObject



8
9
10
# File 'lib/facebooker/adapters/bebo_adapter.rb', line 8

def api_server_base
  'apps.bebo.com'
end

#canvas_server_baseObject



4
5
6
# File 'lib/facebooker/adapters/bebo_adapter.rb', line 4

def canvas_server_base
  "apps.bebo.com"
end

#install_url_baseObject



29
30
31
# File 'lib/facebooker/adapters/bebo_adapter.rb', line 29

def install_url_base
  "http://#{www_server_base_url}/c/apps/add?ApiKey=#{api_key}&v=1.0"
end

#is_for?(application_context) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/facebooker/adapters/bebo_adapter.rb', line 16

def is_for?(application_context)
  application_context == :bebo
end

#login_url_baseObject



25
26
27
# File 'lib/facebooker/adapters/bebo_adapter.rb', line 25

def 
  "http://#{www_server_base_url}/SignIn.jsp?ApiKey=#{api_key}&v=1.0"
end

#www_server_base_urlObject



20
21
22
# File 'lib/facebooker/adapters/bebo_adapter.rb', line 20

def www_server_base_url
  "www.bebo.com"
end