Class: Meibo::Profile

Inherits:
Object
  • Object
show all
Defined in:
lib/meibo/profile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(builders:, data_models:, data_set:) ⇒ Profile

Returns a new instance of Profile.



7
8
9
10
11
# File 'lib/meibo/profile.rb', line 7

def initialize(builders:, data_models:, data_set:)
  @builders = builders
  @data_models = data_models
  @data_set = data_set
end

Instance Attribute Details

#buildersObject (readonly)

Returns the value of attribute builders.



5
6
7
# File 'lib/meibo/profile.rb', line 5

def builders
  @builders
end

#data_modelsObject (readonly)

Returns the value of attribute data_models.



5
6
7
# File 'lib/meibo/profile.rb', line 5

def data_models
  @data_models
end

#data_setObject (readonly)

Returns the value of attribute data_set.



5
6
7
# File 'lib/meibo/profile.rb', line 5

def data_set
  @data_set
end

Instance Method Details

#builder_for(key) ⇒ Object



13
14
15
# File 'lib/meibo/profile.rb', line 13

def builder_for(key)
  builders[key]
end

#data_model_for(file_attribute) ⇒ Object



17
18
19
# File 'lib/meibo/profile.rb', line 17

def data_model_for(file_attribute)
  data_models[file_attribute]
end

#data_set_for(name) ⇒ Object



21
22
23
# File 'lib/meibo/profile.rb', line 21

def data_set_for(name)
  data_set[name]
end