Class: Roby::Interface::V2::Protocol::Task
- Defined in:
- lib/roby/interface/v2/protocol.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#id ⇒ Object
Returns the value of attribute id.
-
#model ⇒ Object
Returns the value of attribute model.
-
#started_since ⇒ Object
Returns the value of attribute started_since.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments
67 68 69 |
# File 'lib/roby/interface/v2/protocol.rb', line 67 def arguments @arguments end |
#id ⇒ Object
Returns the value of attribute id
67 68 69 |
# File 'lib/roby/interface/v2/protocol.rb', line 67 def id @id end |
#model ⇒ Object
Returns the value of attribute model
67 68 69 |
# File 'lib/roby/interface/v2/protocol.rb', line 67 def model @model end |
#started_since ⇒ Object
Returns the value of attribute started_since
67 68 69 |
# File 'lib/roby/interface/v2/protocol.rb', line 67 def started_since @started_since end |
#state ⇒ Object
Returns the value of attribute state
67 68 69 |
# File 'lib/roby/interface/v2/protocol.rb', line 67 def state @state end |
Instance Method Details
#pp_arguments(pp) ⇒ Object
80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/roby/interface/v2/protocol.rb', line 80 def pp_arguments(pp) pp.text "Arguments" pp.nest(2) do arguments.each do |name, arg| pp.breakable pp.text name.to_s pp.text ": " arg.pretty_print(pp) end end end |
#pretty_print(pp) ⇒ Object
70 71 72 73 74 75 76 77 78 |
# File 'lib/roby/interface/v2/protocol.rb', line 70 def pretty_print(pp) pp.text "#{model}<id:#{id}> #{state}" if started_since pp.breakable pp.text "Started for: #{started_since}" end pp.breakable pp_arguments(pp) end |