Sha256: f8d2203e9f3e209442593be8737ef01336ca449bf8691cabf32f309907bd8fc8

Contents?: true

Size: 251 Bytes

Versions: 17

Compression:

Stored size: 251 Bytes

Contents

module PushbulletRuby
  class Entity
    attr_reader :body

    def initialize(body)
      @body = body
    end

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

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

Version data entries

17 entries across 16 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/entity.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/entity.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/entity.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/entity.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/entity.rb
pushbullet_ruby-1.1.4 lib/pushbullet_ruby/entity.rb
tdiary-5.0.8 vendor/bundle/gems/pushbullet_ruby-1.1.3/lib/pushbullet_ruby/entity.rb
pushbullet_ruby-1.1.3 lib/pushbullet_ruby/entity.rb
pushbullet_ruby-1.1.2 lib/pushbullet_ruby/entity.rb
pushbullet_ruby-1.1.1 lib/pushbullet_ruby/entity.rb
pushbullet_ruby-1.1.0 lib/pushbullet_ruby/entity.rb
pushbullet_ruby-1.0.4.1 lib/pushbullet_ruby/entity.rb
pushbullet_ruby-1.0.4 lib/pushbullet_ruby/entity.rb
pushbullet_ruby-1.0.3 lib/pushbullet_ruby/entity.rb
pushbullet_ruby-1.0.2.1 lib/pushbullet_ruby/entity.rb
pushbullet_ruby-1.0.2 lib/pushbullet_ruby/entity.rb
pushbullet_ruby-1.0.1 lib/pushbullet_ruby/entity.rb