Sha256: c529163db17a2364c71503054a827210fa1a53e67534459865d7e4ebc043e820
Contents?: true
Size: 495 Bytes
Versions: 82
Compression:
Stored size: 495 Bytes
Contents
# frozen_string_literal: true module Playbook module PbMessage class Message < Playbook::KitBase prop :avatar_name prop :avatar_status prop :avatar_url prop :label prop :message prop :timestamp def classname generate_classname("pb_message_kit", avatar_class) end def valid? avatar_url.present? || avatar_name end private def avatar_class valid? ? "avatar" : nil end end end end
Version data entries
82 entries across 82 versions & 1 rubygems