Sha256: 9f72dbf1fd7b366f73967e148ddfbb795d148dfc490d206019db2817894d4104

Contents?: true

Size: 256 Bytes

Versions: 5

Compression:

Stored size: 256 Bytes

Contents

module Githu3
  class Store
  
    attr_reader :id
  
    def initialize data
      @id = data[:id] || data["id"]
      @attributes = OpenStruct.new(data)
    end
    
    def method_missing m, *args
      @attributes.send m, *args
    end
      
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
githu3-0.0.8 lib/githu3/store.rb
githu3-0.0.7 lib/githu3/store.rb
githu3-0.0.6 lib/githu3/store.rb
githu3-0.0.5 lib/githu3/store.rb
githu3-0.0.4 lib/githu3/store.rb