add block inspect, status: up to first jump
This commit is contained in:
13
app/main/models/block_model.rb
Normal file
13
app/main/models/block_model.rb
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
# represent a block and hold the actual instance (as transient)
|
||||
|
||||
class BlockModel < Volt::Model
|
||||
field :name
|
||||
attr_accessor :block
|
||||
|
||||
def initialize(b)
|
||||
super()
|
||||
@block = b
|
||||
self.name = b.nil? ? 'undefined' : b.name
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user