Class: Facebooker::MockSession

Inherits:
Session
  • Object
show all
Defined in:
lib/facebooker/mock/session.rb

Constant Summary

Constants inherited from Session

Session::API_PATH_REST, Session::API_SERVER_BASE_URL, Session::WWW_PATH_ADD, Session::WWW_PATH_INSTALL, Session::WWW_PATH_LOGIN, Session::WWW_SERVER_BASE_URL

Instance Attribute Summary

Attributes inherited from Session

#auth_token, #session_key

Instance Method Summary collapse

Methods inherited from Session

#add_next_parameters, #add_tags, #add_to_batch, #admin, api_key, #batch, #batch_request?, #check_friendship, configuration_file_path, configuration_file_path=, create, current, current=, #data, #default_login_url_options, #event_members, #events, #expired?, #fields_to_serialize, #fql_query, #get_albums, #get_photos, #get_tags, #infinite?, #initialize, #install_url, #install_url_optional_parameters, #instance_variable_set_value, #instance_variable_value, #is_fan, #login_url, #login_url_optional_parameters, #marshal_dump, #marshal_load, #mobile, #pages, #permission_url, #post, #post_file, #post_without_logging, #publish_user_action, #register_template_bundle, #secret_for_method, secret_key, #secure_with!, #send_email, #send_notification, #server_cache, #to_yaml, #user, #users, #users_standard

Constructor Details

This class inherits a constructor from Facebooker::Session

Instance Method Details

#secure!Object



9
10
11
12
# File 'lib/facebooker/mock/session.rb', line 9

def secure!
  @uid = 1
  true
end

#secured?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/facebooker/mock/session.rb', line 5

def secured?
  true
end

#serviceObject



14
15
16
# File 'lib/facebooker/mock/session.rb', line 14

def service
  @service ||= MockService.new(Facebooker.api_server_base, Facebooker.api_rest_path, @api_key)
end