class WEEL::Position
Attributes
Public Class Methods
Source
# File lib/weel.rb, line 389 def initialize(position, uuid, detail=:at, passthrough=nil) # :at or :after or :unmark @position = position @detail = detail @uuid = uuid @passthrough = passthrough end
Public Instance Methods
Source
# File lib/weel.rb, line 395 def as_json(*) jsn = { 'position' => @position, 'uuid' => @uuid } jsn['passthrough'] = @passthrough if @passthrough jsn end