Class: Fakesite::Base
- Inherits:
-
Object
- Object
- Fakesite::Base
- Defined in:
- lib/fakesite/base.rb
Instance Attribute Summary collapse
-
#external_uri ⇒ Object
Returns the value of attribute external_uri.
-
#options ⇒ Object
Returns the value of attribute options.
-
#params ⇒ Object
Returns the value of attribute params.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #parameters ⇒ Object
- #redirect_url ⇒ Object
- #return_parameters ⇒ Object
- #return_url ⇒ Object
- #serialize ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/fakesite/base.rb', line 7 def initialize( = {}) self. = end |
Instance Attribute Details
#external_uri ⇒ Object
Returns the value of attribute external_uri.
5 6 7 |
# File 'lib/fakesite/base.rb', line 5 def external_uri @external_uri end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/fakesite/base.rb', line 5 def @options end |
#params ⇒ Object
Returns the value of attribute params.
5 6 7 |
# File 'lib/fakesite/base.rb', line 5 def params @params end |
Class Method Details
.after_register ⇒ Object
35 36 |
# File 'lib/fakesite/base.rb', line 35 def self.after_register end |
.match(external_uri) ⇒ Object
31 32 33 |
# File 'lib/fakesite/base.rb', line 31 def self.match(external_uri) false end |
Instance Method Details
#parameters ⇒ Object
11 12 13 |
# File 'lib/fakesite/base.rb', line 11 def parameters {} end |
#redirect_url ⇒ Object
23 24 25 |
# File 'lib/fakesite/base.rb', line 23 def redirect_url append_parameters(return_url, return_parameters) end |
#return_parameters ⇒ Object
15 16 17 |
# File 'lib/fakesite/base.rb', line 15 def return_parameters params end |
#return_url ⇒ Object
19 20 21 |
# File 'lib/fakesite/base.rb', line 19 def return_url external_params["return_url"] || '/' end |
#serialize ⇒ Object
27 28 29 |
# File 'lib/fakesite/base.rb', line 27 def serialize YAML.dump(self) end |