Class: Actions::Helpers::Humanizer::RepositoryResource
- Inherits:
-
Resource
- Object
- Resource
- Actions::Helpers::Humanizer::RepositoryResource
show all
- Defined in:
- app/lib/actions/helpers/humanizer.rb
Overview
TODO: remove after getting the definitions into Katello
Instance Method Summary
collapse
Methods inherited from Resource
#humanized_value, inherited
Instance Method Details
#humanized_name ⇒ Object
119
120
121
|
# File 'app/lib/actions/helpers/humanizer.rb', line 119
def humanized_name
_('repository')
end
|
#link(data) ⇒ Object
123
124
125
126
127
128
129
|
# File 'app/lib/actions/helpers/humanizer.rb', line 123
def link(data)
product_id = fetch_data(data, :product, :id)
repo_id = fetch_data(data, :repo, :id)
if product_id && repo_id
"/products/#{product_id}/repositories/#{repo_id}"
end
end
|
#name ⇒ Object
115
116
117
|
# File 'app/lib/actions/helpers/humanizer.rb', line 115
def name
:repository
end
|