Sha256: 94b2f8504f56e19fdeb4125f08d98e94ff845b48b42c369af2505d4bbfa6fd3a

Contents?: true

Size: 359 Bytes

Versions: 65

Compression:

Stored size: 359 Bytes

Contents

module Filbunke
  class File

    PATH_KEY = 'path'
    URL_KEY = 'url'
    HASH_KEY = 'hash'
    STATE_KEY = 'state'

    def initialize(json)
      @json = json
    end

    def path
      @json[PATH_KEY]
    end

    def url
      @json[URL_KEY]
    end

    def hash
      @json[HASH_KEY]
    end

    def state
      @json[STATE_KEY]
    end

  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
filbunke-2.1.7 lib/filbunke/file.rb
filbunke-2.1.6 lib/filbunke/file.rb
filbunke-2.1.4 lib/filbunke/file.rb
filbunke-1.13.5 lib/filbunke/file.rb
filbunke-1.13.4 lib/filbunke/file.rb
filbunke-2.1.3 lib/filbunke/file.rb
filbunke-2.1.2 lib/filbunke/file.rb
filbunke-1.13.3 lib/filbunke/file.rb
filbunke-1.13.2 lib/filbunke/file.rb
filbunke-1.13.1 lib/filbunke/file.rb
filbunke-2.1.0 lib/filbunke/file.rb
filbunke-1.13.0 lib/filbunke/file.rb
filbunke-1.12.0 lib/filbunke/file.rb
filbunke-1.11.9 lib/filbunke/file.rb
filbunke-2.0.9 lib/filbunke/file.rb
filbunke-1.11.8 lib/filbunke/file.rb
filbunke-2.0.8 lib/filbunke/file.rb
filbunke-2.0.6 lib/filbunke/file.rb
filbunke-1.11.6 lib/filbunke/file.rb
filbunke-2.0.2 lib/filbunke/file.rb