Class: Brainstem::TestHelpers::BrainstemDataHelper::BrainstemHelperItem

Inherits:
Object
  • Object
show all
Defined in:
lib/brainstem/test_helpers.rb

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ BrainstemHelperItem

Returns a new instance of BrainstemHelperItem.



71
72
73
# File 'lib/brainstem/test_helpers.rb', line 71

def initialize(data)
  @data = data
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name) ⇒ Object



79
80
81
# File 'lib/brainstem/test_helpers.rb', line 79

def method_missing(name)
  @data[name.to_s]
end

Instance Method Details

#keysObject



75
76
77
# File 'lib/brainstem/test_helpers.rb', line 75

def keys
  @data.keys
end