Sha256: 098cf5e1d70af06fcf8fabd15ef00938e4c441e77f29686dcaa6897ba6eb5efe
Contents?: true
Size: 527 Bytes
Versions: 26
Compression:
Stored size: 527 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 type @raw_data['type'] end def attributes @raw_data['attributes'] || [] end end end
Version data entries
26 entries across 26 versions & 1 rubygems