Class: Meibo::Profile
- Inherits:
-
Object
- Object
- Meibo::Profile
- Defined in:
- lib/meibo/profile.rb
Instance Attribute Summary collapse
-
#builders ⇒ Object
readonly
Returns the value of attribute builders.
-
#data_models ⇒ Object
readonly
Returns the value of attribute data_models.
-
#data_set ⇒ Object
readonly
Returns the value of attribute data_set.
Instance Method Summary collapse
- #builder_for(key) ⇒ Object
- #data_model_for(file_attribute) ⇒ Object
- #data_set_for(name) ⇒ Object
-
#initialize(builders:, data_models:, data_set:) ⇒ Profile
constructor
A new instance of Profile.
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
#builders ⇒ Object (readonly)
Returns the value of attribute builders.
5 6 7 |
# File 'lib/meibo/profile.rb', line 5 def builders @builders end |
#data_models ⇒ Object (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_set ⇒ Object (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 |