Class: Oso::Polar::DataFiltering::Relation
- Inherits:
-
Object
- Object
- Oso::Polar::DataFiltering::Relation
- Defined in:
- lib/oso/polar/data_filtering.rb
Overview
Represents relationships between resources, eg. one-one or one-many
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#my_field ⇒ Object
readonly
Returns the value of attribute my_field.
-
#other_field ⇒ Object
readonly
Returns the value of attribute other_field.
-
#other_type ⇒ Object
readonly
Returns the value of attribute other_type.
Instance Method Summary collapse
-
#initialize(kind:, other_type:, my_field:, other_field:) ⇒ Relation
constructor
Describe a Relation from one type to another.
Constructor Details
#initialize(kind:, other_type:, my_field:, other_field:) ⇒ Relation
Describe a Relation from one type to another.
16 17 18 19 20 21 |
# File 'lib/oso/polar/data_filtering.rb', line 16 def initialize(kind:, other_type:, my_field:, other_field:) @kind = kind @other_type = other_type @my_field = my_field @other_field = other_field end |
Instance Attribute Details
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
9 10 11 |
# File 'lib/oso/polar/data_filtering.rb', line 9 def kind @kind end |
#my_field ⇒ Object (readonly)
Returns the value of attribute my_field.
9 10 11 |
# File 'lib/oso/polar/data_filtering.rb', line 9 def my_field @my_field end |
#other_field ⇒ Object (readonly)
Returns the value of attribute other_field.
9 10 11 |
# File 'lib/oso/polar/data_filtering.rb', line 9 def other_field @other_field end |
#other_type ⇒ Object (readonly)
Returns the value of attribute other_type.
9 10 11 |
# File 'lib/oso/polar/data_filtering.rb', line 9 def other_type @other_type end |