Sha256: 35494c2ad388cec16e011b42e845fd2b45e0133c9da3620ea034e48bbe8fbb78
Contents?: true
Size: 680 Bytes
Versions: 3
Compression:
Stored size: 680 Bytes
Contents
class Smartfm::Notification < Smartfm::Base ATTRIBUTES = [:type, :message, :recipient, :sender, :context] READONLY_ATTRIBUTES = [:type, :recipient, :sender, :context] attr_accessor *(ATTRIBUTES - READONLY_ATTRIBUTES) attr_reader *READONLY_ATTRIBUTES include Smartfm::PrivateContent def self.rest_client; Smartfm::RestClient::Notification; end def rest_client; self.class.rest_client; end def initialize(params) @type = params[:type] @message = params[:message] @recipient = params[:recipient] @sender = params[:sender] @context = params[:context] end protected def to_post_data {:message => self.message} end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
nov-smartfm-1.0.2 | lib/smartfm/models/notification.rb |
smartfm-1.0.1 | lib/smartfm/models/notification.rb |
smartfm-1.0.2 | lib/smartfm/models/notification.rb |