Class: Bioroebe::Biomart::Attribute
- Inherits:
-
Object
- Object
- Bioroebe::Biomart::Attribute
- Defined in:
- lib/bioroebe/biomart/attribute.rb
Instance Method Summary collapse
-
#default? ⇒ Boolean
# === default?.
-
#display_name? ⇒ Boolean
(also: #display_name)
# === display_name? ========================================================================= #.
-
#hidden? ⇒ Boolean
(also: #hidden)
# === hidden?.
-
#initialize(i) ⇒ Attribute
constructor
# === initialize ========================================================================= #.
-
#name? ⇒ Boolean
(also: #name)
# === name? ========================================================================= #.
Constructor Details
#initialize(i) ⇒ Attribute
#
initialize
#
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/bioroebe/biomart/attribute.rb', line 20 def initialize(i) # ======================================================================= # # === @name # ======================================================================= # @name = i['internalName'] # ======================================================================= # # === @display_name # ======================================================================= # @display_name = i['displayName'] # ======================================================================= # # === @default # ======================================================================= # @default = i['default'] ? true : false # ======================================================================= # # === @hidden # ======================================================================= # @hidden = i['hideDisplay'] ? true : false end |
Instance Method Details
#default? ⇒ Boolean
#
default?
This is a convenience method to see if this attribute would be enabled by default in the standard MartView interface.
#
73 74 75 |
# File 'lib/bioroebe/biomart/attribute.rb', line 73 def default? @default end |
#display_name? ⇒ Boolean Also known as: display_name
#
display_name?
#
49 50 51 |
# File 'lib/bioroebe/biomart/attribute.rb', line 49 def display_name? @display_name end |
#hidden? ⇒ Boolean Also known as:
#
hidden?
This is a convenience method to see if this attribute is hidden from the standard MartView interface.
#
61 62 63 |
# File 'lib/bioroebe/biomart/attribute.rb', line 61 def hidden? @hidden end |
#name? ⇒ Boolean Also known as: name
#
name?
#
42 43 44 |
# File 'lib/bioroebe/biomart/attribute.rb', line 42 def name? @name end |