module SmoothOperator::Schema
Public Instance Methods
attribute_type(attribute)
click to toggle source
# File lib/smooth_operator/schema.rb, line 16 def attribute_type(attribute) internal_structure[attribute.to_s] end
internal_structure()
click to toggle source
# File lib/smooth_operator/schema.rb, line 8 def internal_structure Helpers.get_instance_variable(self, :internal_structure, {}) end
known_attribute?(attribute)
click to toggle source
# File lib/smooth_operator/schema.rb, line 12 def known_attribute?(attribute) internal_structure.has_key?(attribute.to_s) end
schema(structure)
click to toggle source
# File lib/smooth_operator/schema.rb, line 4 def schema(structure) internal_structure.merge! Helpers.stringify_keys(structure) end