Class: Fakesite::Registration
- Inherits:
-
Object
- Object
- Fakesite::Registration
- Defined in:
- lib/fakesite/registration.rb
Instance Attribute Summary collapse
-
#fakesite ⇒ Object
Returns the value of attribute fakesite.
-
#id ⇒ Object
Returns the value of attribute id.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(id, fakesite, options = {}) ⇒ Registration
constructor
A new instance of Registration.
- #match(uri) ⇒ Object
Constructor Details
#initialize(id, fakesite, options = {}) ⇒ Registration
Returns a new instance of Registration.
5 6 7 8 9 |
# File 'lib/fakesite/registration.rb', line 5 def initialize(id, fakesite, = {}) @id = id @fakesite = fakesite @options = end |
Instance Attribute Details
#fakesite ⇒ Object
Returns the value of attribute fakesite.
3 4 5 |
# File 'lib/fakesite/registration.rb', line 3 def fakesite @fakesite end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/fakesite/registration.rb', line 3 def id @id end |
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/fakesite/registration.rb', line 3 def @options end |
Instance Method Details
#create ⇒ Object
11 12 13 |
# File 'lib/fakesite/registration.rb', line 11 def create @fakesite.new(@options) end |
#match(uri) ⇒ Object
15 16 17 |
# File 'lib/fakesite/registration.rb', line 15 def match(uri) @fakesite.match(uri) end |