Class: InterMine::PathQuery::Join

Inherits:
Object
  • Object
show all
Includes:
PathFeature
Defined in:
lib/intermine/query.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Attributes included from PathFeature

#path

Instance Method Summary collapse

Methods included from PathFeature

#validate

Constructor Details

#initialize(path, style) ⇒ Join

Returns a new instance of Join.



1297
1298
1299
1300
1301
1302
1303
# File 'lib/intermine/query.rb', line 1297

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_stylesObject

Returns the value of attribute valid_styles.



1294
1295
1296
# File 'lib/intermine/query.rb', line 1294

def valid_styles
  @valid_styles
end

Instance Attribute Details

#styleObject

Returns the value of attribute style.



1293
1294
1295
# File 'lib/intermine/query.rb', line 1293

def style
  @style
end

Instance Method Details

#attrsObject



1305
1306
1307
1308
1309
1310
1311
# File 'lib/intermine/query.rb', line 1305

def attrs
    attributes = {
        "path" => @path, 
        "style" => @style
    }
    return attributes
end