Class: HeyYou::DataSource::Hash

Inherits:
Base
  • Object
show all
Defined in:
lib/hey_you/data_source/hash.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#load_notifications

Constructor Details

#initialize(data:) ⇒ Hash

Returns a new instance of Hash.



8
9
10
# File 'lib/hey_you/data_source/hash.rb', line 8

def initialize(data:)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



6
7
8
# File 'lib/hey_you/data_source/hash.rb', line 6

def data
  @data
end

Instance Method Details

#load_collectionsObject



12
13
14
# File 'lib/hey_you/data_source/hash.rb', line 12

def load_collections
  data
end