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
126
127
128
|
# File 'app/lib/actions/helpers/humanizer.rb', line 126
def humanized_name
_('repository')
end
|
#link(data) ⇒ Object
130
131
132
133
134
135
136
|
# File 'app/lib/actions/helpers/humanizer.rb', line 130
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
122
123
124
|
# File 'app/lib/actions/helpers/humanizer.rb', line 122
def name
:repository
end
|