Class: Grumlin::Expressions::P::Predicate

Inherits:
Object
  • Object
show all
Defined in:
lib/grumlin/expressions/p.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace, name, value:, type: nil) ⇒ Predicate

Returns a new instance of Predicate.



7
8
9
10
11
12
# File 'lib/grumlin/expressions/p.rb', line 7

def initialize(namespace, name, value:, type: nil)
  @namespace = namespace
  @name = name
  @value = value
  @type = type
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/grumlin/expressions/p.rb', line 5

def name
  @name
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



5
6
7
# File 'lib/grumlin/expressions/p.rb', line 5

def namespace
  @namespace
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/grumlin/expressions/p.rb', line 5

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/grumlin/expressions/p.rb', line 5

def value
  @value
end