Class: UCD::Node::Field

Inherits:
Base
  • Object
show all
Includes:
HasName, HasType
Defined in:
lib/ucd/node/field.rb

Direct Known Subclasses

Method

Instance Attribute Summary collapse

Attributes included from HasType

#type

Attributes included from HasName

#name

Attributes inherited from Base

#parent

Instance Method Summary collapse

Methods included from HasAttributes

#update_attributes

Constructor Details

#initialize(attributes = {}) ⇒ Field

Returns a new instance of Field.



12
13
14
15
16
# File 'lib/ucd/node/field.rb', line 12

def initialize(attributes={})
  @access = "public"

  super
end

Instance Attribute Details

#accessObject

Returns the value of attribute access.



24
25
26
# File 'lib/ucd/node/field.rb', line 24

def access
  @access
end

#staticObject

Returns the value of attribute static.



18
19
20
# File 'lib/ucd/node/field.rb', line 18

def static
  @static
end