Class: Fakesite::Registration
- Inherits:
-
Object
- Object
- Fakesite::Registration
- Extended by:
- Forwardable
- 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.
Constructor Details
#initialize(id, fakesite, options = {}) ⇒ Registration
Returns a new instance of Registration.
10 11 12 13 14 |
# File 'lib/fakesite/registration.rb', line 10 def initialize(id, fakesite, = {}) self.id = id self.fakesite = fakesite self. = end |
Instance Attribute Details
#fakesite ⇒ Object
Returns the value of attribute fakesite.
7 8 9 |
# File 'lib/fakesite/registration.rb', line 7 def fakesite @fakesite end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/fakesite/registration.rb', line 7 def id @id end |
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/fakesite/registration.rb', line 7 def @options end |
Instance Method Details
#create ⇒ Object
16 17 18 |
# File 'lib/fakesite/registration.rb', line 16 def create fakesite.new() end |