Class: OsCtl::Cli::Top::View
- Inherits:
-
Object
- Object
- OsCtl::Cli::Top::View
- Defined in:
- lib/osctl/cli/top/view.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#rate ⇒ Object
readonly
Returns the value of attribute rate.
Instance Method Summary collapse
-
#initialize(model, rate) ⇒ View
constructor
A new instance of View.
- #start ⇒ Object
Constructor Details
#initialize(model, rate) ⇒ View
Returns a new instance of View.
5 6 7 8 |
# File 'lib/osctl/cli/top/view.rb', line 5 def initialize(model, rate) @model = model @rate = rate end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
3 4 5 |
# File 'lib/osctl/cli/top/view.rb', line 3 def model @model end |
#rate ⇒ Object (readonly)
Returns the value of attribute rate.
3 4 5 |
# File 'lib/osctl/cli/top/view.rb', line 3 def rate @rate end |
Instance Method Details
#start ⇒ Object
10 11 12 |
# File 'lib/osctl/cli/top/view.rb', line 10 def start raise NotImplementedError end |