Class: Scaffolder::Test::Unresolved

Inherits:
Object
  • Object
show all
Defined in:
lib/scaffolder/test/unresolved.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Unresolved

Returns a new instance of Unresolved.



8
9
10
# File 'lib/scaffolder/test/unresolved.rb', line 8

def initialize(options = {})
  @length = options[:length]
end

Instance Attribute Details

#lengthObject (readonly)

Returns the value of attribute length.



6
7
8
# File 'lib/scaffolder/test/unresolved.rb', line 6

def length
  @length
end

Instance Method Details

#to_hashObject



12
13
14
# File 'lib/scaffolder/test/unresolved.rb', line 12

def to_hash
  {'unresolved' => {'length' => length}}
end