Class: JunglePath::Query::FieldPrimaryKey
- Inherits:
-
Object
- Object
- JunglePath::Query::FieldPrimaryKey
- Defined in:
- lib/jungle_path/query/field_primary_key.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#node ⇒ Object
Returns the value of attribute node.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(name, node, parent) ⇒ FieldPrimaryKey
constructor
A new instance of FieldPrimaryKey.
- #is_entity? ⇒ Boolean
- #is_primary_key_column? ⇒ Boolean
- #is_secure? ⇒ Boolean
Constructor Details
#initialize(name, node, parent) ⇒ FieldPrimaryKey
Returns a new instance of FieldPrimaryKey.
11 12 13 14 15 |
# File 'lib/jungle_path/query/field_primary_key.rb', line 11 def initialize(name, node, parent) @name = name.downcase.to_sym @node = node @parent = parent end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/jungle_path/query/field_primary_key.rb', line 10 def name @name end |
#node ⇒ Object
Returns the value of attribute node.
10 11 12 |
# File 'lib/jungle_path/query/field_primary_key.rb', line 10 def node @node end |
#parent ⇒ Object
Returns the value of attribute parent.
10 11 12 |
# File 'lib/jungle_path/query/field_primary_key.rb', line 10 def parent @parent end |
Instance Method Details
#is_entity? ⇒ Boolean
16 17 18 |
# File 'lib/jungle_path/query/field_primary_key.rb', line 16 def is_entity? false end |
#is_primary_key_column? ⇒ Boolean
19 20 21 |
# File 'lib/jungle_path/query/field_primary_key.rb', line 19 def is_primary_key_column? true end |
#is_secure? ⇒ Boolean
22 23 24 |
# File 'lib/jungle_path/query/field_primary_key.rb', line 22 def is_secure? false end |