Class: Moo::Model::Data

Inherits:
Object show all
Defined in:
lib/moo/model/data.rb

Direct Known Subclasses

BoxData, FixedImageData, ImageData, TextData

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

Returns the value of attribute link_id.



4
5
6
# File 'lib/moo/model/data.rb', line 4

def link_id
  @link_id
end

Instance Method Details

#typeObject



6
7
8
# File 'lib/moo/model/data.rb', line 6

def type
  self.class.name.split('::')[2].uncapitalize
end