Module: Moogle::TargetRepresenter
- Includes:
- Roar::Representer::JSON
- Defined in:
- lib/moogle/representers/target_representer.rb
Instance Method Summary collapse
Instance Method Details
#kind ⇒ Object
23 24 25 |
# File 'lib/moogle/representers/target_representer.rb', line 23 def kind 'moogle/domain/target' end |
#translated_type ⇒ Object
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 |