Sha256: 79cae31a925f6a61798c515deadef912f34a96c567f06ee6ad3db8ab2d114968

Contents?: true

Size: 251 Bytes

Versions: 3

Compression:

Stored size: 251 Bytes

Contents

module LayerVault
  class User < LayerVault::Model
    class << self
      def me
        resp = MultiJson.decode(LayerVault.client.me)
        instance = build_associations(resp, :organizations, :projects)
        instance
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
layervault-0.1.2 lib/layervault/user.rb
layervault-0.1.1 lib/layervault/user.rb
layervault-0.1.0 lib/layervault/user.rb