Class: Katello::ProductHostCountPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/presenters/katello/product_host_count_presenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pool) ⇒ ProductHostCountPresenter

Returns a new instance of ProductHostCountPresenter.



5
6
7
8
# File 'app/presenters/katello/product_host_count_presenter.rb', line 5

def initialize(pool)
  @product_host_count = pool.product_host_count
  super(pool)
end

Instance Attribute Details

#product_host_countObject (readonly)

Returns the value of attribute product_host_count.



3
4
5
# File 'app/presenters/katello/product_host_count_presenter.rb', line 3

def product_host_count
  @product_host_count
end