module Croods::Resource::Attributes::Base
Public Instance Methods
add_attribute(name, type, **options)
click to toggle source
# File lib/croods/resource/attributes/base.rb, line 7 def add_attribute(name, type, **options) attribute = Croods::Attribute.new(name, type, **options) additional_attributes[name.to_s] = attribute end
additional_attributes()
click to toggle source
# File lib/croods/resource/attributes/base.rb, line 12 def additional_attributes @additional_attributes ||= {} end
ignored_attributes()
click to toggle source
# File lib/croods/resource/attributes/base.rb, line 22 def ignored_attributes @ignored_attributes ||= [] end
skip_attributes(*names)
click to toggle source
# File lib/croods/resource/attributes/base.rb, line 16 def skip_attributes(*names) names.each do |name| ignored_attributes << name.to_s end end
Also aliased as: skip_attribute