Class: Actions::Helpers::Humanizer::Resource
- Inherits:
-
Object
- Object
- Actions::Helpers::Humanizer::Resource
show all
- Defined in:
- app/lib/actions/helpers/humanizer.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.inherited(klass) ⇒ Object
Instance Method Details
#humanized_name ⇒ Object
57
58
59
|
# File 'app/lib/actions/helpers/humanizer.rb', line 57
def humanized_name
name
end
|
#humanized_value(data) ⇒ Object
63
64
65
66
67
|
# File 'app/lib/actions/helpers/humanizer.rb', line 63
def humanized_value(data)
fetch_data(data, name, :name) ||
fetch_data(data, name, :label) ||
fetch_data(data, name, :id)
end
|
#link(data) ⇒ Object
61
|
# File 'app/lib/actions/helpers/humanizer.rb', line 61
def link(data); end
|
#name ⇒ Object
53
54
55
|
# File 'app/lib/actions/helpers/humanizer.rb', line 53
def name
raise NotImplementedError
end
|