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.
-
#manifest_properties ⇒ Object
readonly
Returns the value of attribute manifest_properties.
Instance Method Summary collapse
- #builder_for(key) ⇒ Object
- #data_model_for(file_attribute) ⇒ Object
- #data_set_for(file_attribute) ⇒ Object
-
#initialize(builders:, data_models:, data_set:, manifest_properties: {}) ⇒ Profile
constructor
A new instance of Profile.
- #manifest_version ⇒ Object
- #oneroster_version ⇒ Object
Constructor Details
#initialize(builders:, data_models:, data_set:, manifest_properties: {}) ⇒ Profile
Returns a new instance of Profile.
7 8 9 10 11 12 |
# File 'lib/meibo/profile.rb', line 7 def initialize(builders:, data_models:, data_set:, manifest_properties: {}) @builders = builders @data_models = data_models @data_set = data_set @manifest_properties = manifest_properties 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 |
#manifest_properties ⇒ Object (readonly)
Returns the value of attribute manifest_properties.
5 6 7 |
# File 'lib/meibo/profile.rb', line 5 def manifest_properties @manifest_properties end |
Instance Method Details
#builder_for(key) ⇒ Object
14 15 16 |
# File 'lib/meibo/profile.rb', line 14 def builder_for(key) builders[key] end |
#data_model_for(file_attribute) ⇒ Object
18 19 20 |
# File 'lib/meibo/profile.rb', line 18 def data_model_for(file_attribute) data_models[file_attribute] end |
#data_set_for(file_attribute) ⇒ Object
22 23 24 |
# File 'lib/meibo/profile.rb', line 22 def data_set_for(file_attribute) data_set[file_attribute] end |
#manifest_version ⇒ Object
26 |
# File 'lib/meibo/profile.rb', line 26 def manifest_version = manifest_properties.fetch(:manifest_version, Meibo::Manifest::MANIFEST_VERSION) |
#oneroster_version ⇒ Object
27 |
# File 'lib/meibo/profile.rb', line 27 def oneroster_version = manifest_properties.fetch(:oneroster_version, Meibo::Manifest::ONEROSTER_VERSION) |