Sha256: 1f1bc3a1c230e9508f56f02e5233d860da81471e1d8e4871c21ee400f86bcb7e

Contents?: true

Size: 365 Bytes

Versions: 1

Compression:

Stored size: 365 Bytes

Contents

module Openseadragon
  class Image
    attr_accessor :id, :width, :height

    class_attribute :file_resolver
   
    class << self
      def find(id)
        file_resolver.find(id)
      end
    end

    def initialize(attributes = {})
      self.id = attributes[:id]
      self.width = attributes[:width]
      self.height = attributes[:height]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openseadragon-0.0.2 app/models/openseadragon/image.rb