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

Version Path
simplificator-withings-0.7.0 lib/withings/notification_description.rb
simplificator-withings-0.6.10 lib/withings/notification_description.rb
simplificator-withings-0.6.9 lib/withings/notification_description.rb
simplificator-withings-0.6.8 lib/withings/notification_description.rb
simplificator-withings-0.6.6 lib/withings/notification_description.rb
simplificator-withings-0.6.5 lib/withings/notification_description.rb
simplificator-withings-0.6.4 lib/withings/notification_description.rb
simplificator-withings-0.6.3 lib/withings/notification_description.rb
simplificator-withings-0.6.2 lib/withings/notification_description.rb
simplificator-withings-0.6.1 lib/withings/notification_description.rb
simplificator-withings-0.6.0 lib/withings/notification_description.rb
simplificator-withings-0.4.5 lib/withings/notification_description.rb
simplificator-withings-0.4.4 lib/withings/notification_description.rb
simplificator-withings-0.4.3 lib/withings/notification_description.rb
simplificator-withings-0.4.2 lib/withings/notification_description.rb
simplificator-withings-0.4.1 lib/withings/notification_description.rb
simplificator-withings-0.4.0 lib/withings/notification_description.rb
simplificator-withings-0.3.4 lib/withings/notification_description.rb
simplificator-withings-0.3.3 lib/withings/notification_description.rb
simplificator-withings-0.3.2 lib/withings/notification_description.rb