Class: Pushable::Stub
- Inherits:
-
Object
- Object
- Pushable::Stub
- Defined in:
- lib/pushable/stub.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass, fields = {}) ⇒ Stub
constructor
A new instance of Stub.
Constructor Details
#initialize(klass, fields = {}) ⇒ Stub
Returns a new instance of Stub.
5 6 7 8 9 |
# File 'lib/pushable/stub.rb', line 5 def initialize(klass, fields = {}) @klass = klass @fields = fields validate end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
3 4 5 |
# File 'lib/pushable/stub.rb', line 3 def fields @fields end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
3 4 5 |
# File 'lib/pushable/stub.rb', line 3 def klass @klass end |