foreman/app/views/api/v2/interfaces/base.json.rabl @ 7afae8e0
object @interface
|
|
|
|
attributes :id, :name, :ip, :ip6, :mac, :identifier, :primary, :provision
|
|
node :type do |i|
|
|
next if i.is_a? Symbol
|
|
i.class.humanized_name.downcase
|
|
end
|