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.



1275
1276
1277
1278
1279
1280
1281
# File 'lib/intermine/query.rb', line 1275

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.



1272
1273
1274
# File 'lib/intermine/query.rb', line 1272

def valid_styles
  @valid_styles
end

Instance Attribute Details

#styleObject

Returns the value of attribute style.



1271
1272
1273
# File 'lib/intermine/query.rb', line 1271

def style
  @style
end

Instance Method Details

#attrsObject



1283
1284
1285
1286
1287
1288
1289
# File 'lib/intermine/query.rb', line 1283

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