Class: RESTfulLoaders::PropertyValuesLoader
- Inherits:
-
Object
- Object
- RESTfulLoaders::PropertyValuesLoader
- Includes:
- LoaderHelper
- Defined in:
- lib/mingle_macro_development_toolkit/loaders/restful_loaders/property_values_loader.rb
Instance Method Summary collapse
-
#initialize(property_definition) ⇒ PropertyValuesLoader
constructor
A new instance of PropertyValuesLoader.
- #load ⇒ Object
Methods included from LoaderHelper
Constructor Details
#initialize(property_definition) ⇒ PropertyValuesLoader
Returns a new instance of PropertyValuesLoader.
6 7 8 |
# File 'lib/mingle_macro_development_toolkit/loaders/restful_loaders/property_values_loader.rb', line 6 def initialize(property_definition) @property_definition = property_definition end |
Instance Method Details
#load ⇒ Object
10 11 12 |
# File 'lib/mingle_macro_development_toolkit/loaders/restful_loaders/property_values_loader.rb', line 10 def load extract('values', @property_definition).collect {|value| Mingle::PropertyValue.new(OpenStruct.new(value))} end |