Class: AppEngine::Testing::TestEnv
- Inherits:
-
Object
- Object
- AppEngine::Testing::TestEnv
- Includes:
- ApiProxy::Environment
- Defined in:
- lib/appengine-apis/testing.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#admin ⇒ Object
writeonly
Sets the attribute admin.
-
#appid ⇒ Object
writeonly
Sets the attribute appid.
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#auth_domain ⇒ Object
writeonly
Sets the attribute auth_domain.
-
#default_namespace ⇒ Object
writeonly
Sets the attribute default_namespace.
-
#email ⇒ Object
writeonly
Sets the attribute email.
-
#request_namespace ⇒ Object
writeonly
Sets the attribute request_namespace.
-
#version ⇒ Object
writeonly
Sets the attribute version.
Instance Method Summary collapse
- #getAppId ⇒ Object
- #getAttributes ⇒ Object
- #getAuthDomain ⇒ Object
- #getDefaultNamespace ⇒ Object
- #getEmail ⇒ Object
- #getRequestNamespace ⇒ Object
- #getVersionId ⇒ Object
-
#initialize ⇒ TestEnv
constructor
A new instance of TestEnv.
- #inspect ⇒ Object
- #isAdmin ⇒ Object
- #isLoggedIn ⇒ Object
- #setDefaultNamespace(s) ⇒ Object
Constructor Details
#initialize ⇒ TestEnv
Returns a new instance of TestEnv.
41 42 43 44 45 46 47 48 |
# File 'lib/appengine-apis/testing.rb', line 41 def initialize @appid = "test" @version = "1.0" @auth_domain= "gmail.com" @default_namespace = @request_namespace = "" @email = "" @attributes = java.util.HashMap.new end |
Instance Attribute Details
#admin=(value) ⇒ Object (writeonly)
Sets the attribute admin
37 38 39 |
# File 'lib/appengine-apis/testing.rb', line 37 def admin=(value) @admin = value end |
#appid=(value) ⇒ Object (writeonly)
Sets the attribute appid
37 38 39 |
# File 'lib/appengine-apis/testing.rb', line 37 def appid=(value) @appid = value end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
39 40 41 |
# File 'lib/appengine-apis/testing.rb', line 39 def attributes @attributes end |
#auth_domain=(value) ⇒ Object (writeonly)
Sets the attribute auth_domain
38 39 40 |
# File 'lib/appengine-apis/testing.rb', line 38 def auth_domain=(value) @auth_domain = value end |
#default_namespace=(value) ⇒ Object (writeonly)
Sets the attribute default_namespace
38 39 40 |
# File 'lib/appengine-apis/testing.rb', line 38 def default_namespace=(value) @default_namespace = value end |
#email=(value) ⇒ Object (writeonly)
Sets the attribute email
37 38 39 |
# File 'lib/appengine-apis/testing.rb', line 37 def email=(value) @email = value end |
#request_namespace=(value) ⇒ Object (writeonly)
Sets the attribute request_namespace
38 39 40 |
# File 'lib/appengine-apis/testing.rb', line 38 def request_namespace=(value) @request_namespace = value end |
#version=(value) ⇒ Object (writeonly)
Sets the attribute version
37 38 39 |
# File 'lib/appengine-apis/testing.rb', line 37 def version=(value) @version = value end |
Instance Method Details
#getAppId ⇒ Object
50 51 52 |
# File 'lib/appengine-apis/testing.rb', line 50 def getAppId @appid end |
#getAttributes ⇒ Object
86 87 88 |
# File 'lib/appengine-apis/testing.rb', line 86 def getAttributes @attributes end |
#getAuthDomain ⇒ Object
70 71 72 |
# File 'lib/appengine-apis/testing.rb', line 70 def getAuthDomain @auth_domain end |
#getDefaultNamespace ⇒ Object
78 79 80 |
# File 'lib/appengine-apis/testing.rb', line 78 def getDefaultNamespace @default_namespace end |
#getEmail ⇒ Object
58 59 60 |
# File 'lib/appengine-apis/testing.rb', line 58 def getEmail @email end |
#getRequestNamespace ⇒ Object
74 75 76 |
# File 'lib/appengine-apis/testing.rb', line 74 def getRequestNamespace @request_namespace end |
#getVersionId ⇒ Object
54 55 56 |
# File 'lib/appengine-apis/testing.rb', line 54 def getVersionId @version end |
#inspect ⇒ Object
90 91 92 |
# File 'lib/appengine-apis/testing.rb', line 90 def inspect "#<TestEnv>" end |
#isAdmin ⇒ Object
66 67 68 |
# File 'lib/appengine-apis/testing.rb', line 66 def isAdmin !!@admin end |
#isLoggedIn ⇒ Object
62 63 64 |
# File 'lib/appengine-apis/testing.rb', line 62 def isLoggedIn !(@email.nil? || @auth_domain.nil? || @email.empty?) end |
#setDefaultNamespace(s) ⇒ Object
82 83 84 |
# File 'lib/appengine-apis/testing.rb', line 82 def setDefaultNamespace(s) @default_namespace = s end |