Sha256: dff8b3e1463f9f6a0d7255e57cc2d30c48b9f8a79dee17e47420f1563517bc21

Contents?: true

Size: 297 Bytes

Versions: 4

Compression:

Stored size: 297 Bytes

Contents

module Smirk
  class Image < Client
    
    def initialize(session_id, info)
      info.each do |key, value|
        instance_variable_set("@#{key}", value)
        Image.instance_eval do
          attr_reader key.to_sym
        end
      end
      @session_id = session_id
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
smirk-0.2.1 lib/smirk/image.rb
smirk-0.1.0 lib/smirk/image.rb
smirk-0.0.9 lib/smirk/image.rb
smirk-0.0.8 lib/smirk/image.rb