Class: InterMine::PathQuery::Join
- Inherits:
-
Object
- Object
- InterMine::PathQuery::Join
- Includes:
- PathFeature
- Defined in:
- lib/intermine/query.rb
Class Attribute Summary collapse
-
.valid_styles ⇒ Object
Returns the value of attribute valid_styles.
Instance Attribute Summary collapse
-
#style ⇒ Object
Returns the value of attribute style.
Attributes included from PathFeature
Instance Method Summary collapse
- #attrs ⇒ Object
-
#initialize(path, style) ⇒ Join
constructor
A new instance of Join.
Methods included from PathFeature
Constructor Details
#initialize(path, style) ⇒ Join
Returns a new instance of Join.
1410 1411 1412 1413 1414 1415 1416 |
# File 'lib/intermine/query.rb', line 1410 def initialize(path, style) unless Join.valid_styles.include?(style) raise ArgumentError, "Invalid style: #{style}" end self.path = path self.style = style end |
Class Attribute Details
.valid_styles ⇒ Object
Returns the value of attribute valid_styles.
1407 1408 1409 |
# File 'lib/intermine/query.rb', line 1407 def valid_styles @valid_styles end |
Instance Attribute Details
#style ⇒ Object
Returns the value of attribute style.
1406 1407 1408 |
# File 'lib/intermine/query.rb', line 1406 def style @style end |
Instance Method Details
#attrs ⇒ Object
1418 1419 1420 1421 1422 1423 1424 |
# File 'lib/intermine/query.rb', line 1418 def attrs attributes = { "path" => @path, "style" => @style } return attributes end |