Class: JunglePath::Query::Field

Inherits:
Object
  • Object
show all
Defined in:
lib/jungle_path/query/field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, node, parent, is_secure = false) ⇒ Field

Returns a new instance of Field.



11
12
13
14
15
16
# File 'lib/jungle_path/query/field.rb', line 11

def initialize(name, node, parent, is_secure = false)
  @name = name.downcase.to_sym
  @node = node
  @parent = parent
  @is_secure = is_secure
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/jungle_path/query/field.rb', line 10

def name
  @name
end

#nodeObject

Returns the value of attribute node.



10
11
12
# File 'lib/jungle_path/query/field.rb', line 10

def node
  @node
end

#parentObject

Returns the value of attribute parent.



10
11
12
# File 'lib/jungle_path/query/field.rb', line 10

def parent
  @parent
end

Instance Method Details

#is_entity?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/jungle_path/query/field.rb', line 17

def is_entity?
  false
end

#is_primary_key_column?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/jungle_path/query/field.rb', line 20

def is_primary_key_column?
  false
end

#is_secure?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/jungle_path/query/field.rb', line 23

def is_secure?
  @is_secure
end