Class: Bioroebe::Biomart::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/bioroebe/biomart/attribute.rb

Overview

Bioroebe::Biomart::Attribute

Instance Method Summary collapse

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.

#

Returns:

  • (Boolean)

    true/false



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?

#

Returns:

  • (Boolean)


49
50
51
# File 'lib/bioroebe/biomart/attribute.rb', line 49

def display_name?
  @display_name
end

#hidden?Boolean Also known as: hidden

#

hidden?

This is a convenience method to see if this attribute is hidden from the standard MartView interface.

#

Returns:

  • (Boolean)

    true/false



61
62
63
# File 'lib/bioroebe/biomart/attribute.rb', line 61

def hidden?
  @hidden
end

#name?Boolean Also known as: name

#

name?

#

Returns:

  • (Boolean)


42
43
44
# File 'lib/bioroebe/biomart/attribute.rb', line 42

def name?
  @name
end