Sha256: 680a8d6d09a880266193e34def468dae7122b6ecab8619331e6d51ecad560b16

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

module Washbullet
  class Push
    attr_reader :body

    def initialize(response_body)
      @body = response_body
    end

    def type
      body['type']
    end

    def created
      Time.at(body['created'])
    end

    def modified
      Time.at(body['modified'])
    end

    private

    def identifier
      body['iden']
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
washbullet-0.4.0 lib/washbullet/push.rb