Class: Pushable::Stub

Inherits:
Object
  • Object
show all
Defined in:
lib/pushable/stub.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldsObject (readonly)

Returns the value of attribute fields.



3
4
5
# File 'lib/pushable/stub.rb', line 3

def fields
  @fields
end

#klassObject (readonly)

Returns the value of attribute klass.



3
4
5
# File 'lib/pushable/stub.rb', line 3

def klass
  @klass
end