Class: Herve::CLI::RubyCommands::List::Entry
- Inherits:
-
Data
- Object
- Data
- Herve::CLI::RubyCommands::List::Entry
- Defined in:
- lib/herve/cli/ruby_commands/list.rb
Overview
Ruby entry: Ruby + metadata
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#installed ⇒ Object
readonly
Returns the value of attribute installed.
Instance Method Summary collapse
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active
29 30 31 |
# File 'lib/herve/cli/ruby_commands/list.rb', line 29 def active @active end |
#details ⇒ Object (readonly)
Returns the value of attribute details
29 30 31 |
# File 'lib/herve/cli/ruby_commands/list.rb', line 29 def details @details end |
#installed ⇒ Object (readonly)
Returns the value of attribute installed
29 30 31 |
# File 'lib/herve/cli/ruby_commands/list.rb', line 29 def installed @installed end |
Instance Method Details
#to_json(state = nil) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/herve/cli/ruby_commands/list.rb', line 30 def to_json(state = nil, *) hsh = { installed: installed, active: active, details: details } JSON::State.from_state(state).generate(hsh) end |