class RESTfulLoaders::PropertyDefinitionLoader

Public Class Methods

new(project, pd) click to toggle source
# File lib/mingle_macro_development_toolkit/loaders/restful_loaders/property_definition_loader.rb, line 4
def initialize(project, pd)
  @project = project
  @pd = pd
end

Public Instance Methods

load() click to toggle source
# File lib/mingle_macro_development_toolkit/loaders/restful_loaders/property_definition_loader.rb, line 13
def load
  @property_definition = Mingle::PropertyDefinition.new(OpenStruct.new(@pd))
  @property_definition.card_types_property_definitions_loader = CardTypesPropertyDefinitionsLoader.new(@project, 'property_definition_id' => @pd['id'])
  @property_definition.values_loader = PropertyValuesLoader.new(@pd)
  @property_definition
end
property_definition() click to toggle source
# File lib/mingle_macro_development_toolkit/loaders/restful_loaders/property_definition_loader.rb, line 9
def property_definition
  @property_definition ||= load
end