class Dennis::RecordType::ContentAttribute
Public Class Methods
new(hash)
click to toggle source
# File lib/dennis/record_type.rb, line 46 def initialize(hash) @hash = hash end
Public Instance Methods
label()
click to toggle source
# File lib/dennis/record_type.rb, line 54 def label @hash['label'] end
name()
click to toggle source
# File lib/dennis/record_type.rb, line 50 def name @hash['name'] end
options()
click to toggle source
# File lib/dennis/record_type.rb, line 62 def options return [] if @hash['options'].nil? @hash['options'].map do |hash| ContentAttributeOption.new(hash) end end
type()
click to toggle source
# File lib/dennis/record_type.rb, line 58 def type @hash['type'] end