Sha256: 70df14a149fcec11aabee643037fe4691c8269b49c1f47bf299190397b377387
Contents?: true
Size: 798 Bytes
Versions: 2
Compression:
Stored size: 798 Bytes
Contents
module Biomart # Class representation for a biomart attribute. # Will belong to a Biomart::Dataset. class Attribute attr_reader :name, :display_name def initialize(args) @name = args["internalName"] @display_name = args["displayName"] @default = args["default"] ? true : false @hidden = args["hideDisplay"] ? true : false end # Convenience method to see if this attribute is hidden from # the standard MartView interface. # # @return [Boolean] true/false def hidden? @hidden end # Convenience method to see if this attribute would be # enabled by default in the standard MartView interface. # # @return [Boolean] true/false def default? @default end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
biomart-0.2.3 | lib/biomart/attribute.rb |
biomart-0.2.2 | lib/biomart/attribute.rb |