Class: Actions::Helpers::Humanizer::SystemResource

Inherits:
Resource
  • Object
show all
Defined in:
app/lib/actions/helpers/humanizer.rb

Instance Method Summary collapse

Methods inherited from Resource

#humanized_value, inherited

Instance Method Details

#humanized_nameObject



179
180
181
# File 'app/lib/actions/helpers/humanizer.rb', line 179

def humanized_name
  _('system')
end


183
184
185
186
187
# File 'app/lib/actions/helpers/humanizer.rb', line 183

def link(data)
  if (system_uuid = fetch_data(data, :system, :uuid))
    "#/systems/#{system_uuid}/info"
  end
end

#nameObject



175
176
177
# File 'app/lib/actions/helpers/humanizer.rb', line 175

def name
  :system
end