Class: OsCtl::Cli::Top::View

Inherits:
Object
  • Object
show all
Defined in:
lib/osctl/cli/top/view.rb

Direct Known Subclasses

JsonExporter, Tui

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#modelObject (readonly)

Returns the value of attribute model.



3
4
5
# File 'lib/osctl/cli/top/view.rb', line 3

def model
  @model
end

#rateObject (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

#startObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/osctl/cli/top/view.rb', line 10

def start
  raise NotImplementedError
end