Sha256: cd0c47dae41b4f0d1421bb479ed8a2dbb3c3c25ca3ff28a37fe587fb88feb59e

Contents?: true

Size: 262 Bytes

Versions: 3

Compression:

Stored size: 262 Bytes

Contents

require 'miu/resources'

module Miu
  module Resources
    class User < Base
      attr_accessor :name

      def initialize(options = {})
        @name = options[:name]
      end

      def to_h
        super.merge({:name => @name})
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
miu-0.2.3 lib/miu/resources/user.rb
miu-0.2.2 lib/miu/resources/user.rb
miu-0.2.1 lib/miu/resources/user.rb