class CMIS::PropertyDefinition
Public Class Methods
new(hash = {})
click to toggle source
# File lib/cmis/property_definition.rb, line 3 def initialize(hash = {}) @hash = hash.stringify_keys @hash.each_key do |key| self.class.class_eval "def #{key.as_ruby_property};@hash['#{key}'];end" self.class.class_eval "def #{key.as_ruby_property}=(value);@hash['#{key}']=value;end" end end
Public Instance Methods
oncreate?()
click to toggle source
# File lib/cmis/property_definition.rb, line 15 def oncreate? updatability == 'oncreate' end
readonly?()
click to toggle source
# File lib/cmis/property_definition.rb, line 11 def readonly? updatability == 'readonly' end
readwrite?()
click to toggle source
# File lib/cmis/property_definition.rb, line 19 def readwrite? updatability == 'readwrite' end
to_hash()
click to toggle source
# File lib/cmis/property_definition.rb, line 23 def to_hash @hash end