Class: ArDocStore::Attributes::EmbedsBase

Inherits:
Base
  • Object
show all
Defined in:
lib/ar_doc_store/attributes/embeds_base.rb

Direct Known Subclasses

EmbedsMany, EmbedsOne

Instance Attribute Summary collapse

Attributes inherited from Base

#attribute, #conversion, #default, #model, #options, #predicate

Instance Method Summary collapse

Methods inherited from Base

#add_ransacker, #attribute_options, #attribute_type, #build, build, #define_query_method, #initialize, #store_attribute

Methods included from CallbackSupport

included

Constructor Details

This class inherits a constructor from ArDocStore::Attributes::Base

Instance Attribute Details

#class_nameObject (readonly)

Returns the value of attribute class_name.



6
7
8
# File 'lib/ar_doc_store/attributes/embeds_base.rb', line 6

def class_name
  @class_name
end

Instance Method Details

#embedded?Boolean

Returns:



13
14
15
# File 'lib/ar_doc_store/attributes/embeds_base.rb', line 13

def embedded?
  true
end