Sha256: ed6068798e0d5157d72e720abda5f91380f3b0333b762ae277d2c61d4c4993ce
Contents?: true
Size: 487 Bytes
Versions: 2
Compression:
Stored size: 487 Bytes
Contents
module Scrivito class ObjClassData def initialize(raw_data) raw_data = raw_data.deep_stringify_keys if type = raw_data['type'] raw_data['is_binary'] = %w[image generic].include?(type) end @raw_data = raw_data end def id @raw_data['id'] end def name @raw_data['name'] end def is_active !!@raw_data['is_active'] end def is_binary !!@raw_data['is_binary'] end def attributes @raw_data['attributes'] || [] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scrivito_sdk-0.18.1 | lib/scrivito/obj_class_data.rb |
scrivito_sdk-0.18.0 | lib/scrivito/obj_class_data.rb |