Class: Grumlin::Expressions::P::Predicate
- Inherits:
-
Object
- Object
- Grumlin::Expressions::P::Predicate
- Defined in:
- lib/grumlin/expressions/p.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(namespace, name, value:, type: nil) ⇒ Predicate
constructor
A new instance of Predicate.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/grumlin/expressions/p.rb', line 5 def name @name end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
5 6 7 |
# File 'lib/grumlin/expressions/p.rb', line 5 def namespace @namespace end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/grumlin/expressions/p.rb', line 5 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/grumlin/expressions/p.rb', line 5 def value @value end |