Class: HecksDomain::Parser::ReferenceField::ReferenceField

Inherits:
EntityField
  • Object
show all
Defined in:
lib/hecks/domain/parser/reference_field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from EntityField

#as, #attribute_name, #initial_state, #initialize, #optional=, #optional?, #private_accessor, #public_accessor, #read_only=, #read_only?

Constructor Details

This class inherits a constructor from HecksDomain::Parser::EntityField

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/hecks/domain/parser/reference_field.rb', line 5

def name
  @name
end

Instance Method Details

#module_nameObject



6
7
8
# File 'lib/hecks/domain/parser/reference_field.rb', line 6

def module_name
  @as.keys.first.to_s + '::' + @as.values.first.to_s
end