Sha256: c04bded3fe22295073c3798e4e340750a39bcf75f623b31c9d31a20b8d0f3555
Contents?: true
Size: 395 Bytes
Versions: 33
Compression:
Stored size: 395 Bytes
Contents
class Withings::NotificationDescription attr_reader :callback_url, :description, :expires_at def initialize(params = {}) params = params.stringify_keys @callback_url = params['callbackurl'] @description = params['comment'] @expires_at = Time.at(params['expires']) end def to_s "[Notification #{self.callback_url} / #{self.description}, #{self.expires_at}]" end end
Version data entries
33 entries across 33 versions & 1 rubygems