Module: Moogle::TargetRepresenter

Includes:
Roar::Representer::JSON
Defined in:
lib/moogle/representers/target_representer.rb

Instance Method Summary collapse

Instance Method Details

#kindObject



23
24
25
# File 'lib/moogle/representers/target_representer.rb', line 23

def kind
  'moogle/domain/target'
end

#translated_typeObject



27
28
29
30
# File 'lib/moogle/representers/target_representer.rb', line 27

def translated_type
  return $1.to_s.tableize if /^Moogle::(.+)Target$/ === self.type.to_s
  return nil
end