Sha256: 8cd9cf69596daef5189143673cf6e1c00884fa5ee171045a34e4add81231df18

Contents?: true

Size: 384 Bytes

Versions: 8

Compression:

Stored size: 384 Bytes

Contents

require "active_model"

module Auther
  module Presenter
    class Account
      include ActiveModel::Validations

      attr_accessor :name, :login, :password

      validates :name, :login, :password, presence: true

      def initialize options = {}
        @name = options[:name]
        @login = options[:login]
        @password = options[:password]
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
auther-4.1.0 app/presenters/auther/account.rb
auther-4.0.0 app/presenters/auther/account.rb
auther-3.2.0 app/presenters/auther/account.rb
auther-3.1.0 app/presenters/auther/account.rb
auther-3.0.0 app/presenters/auther/account.rb
auther-2.2.0 app/presenters/auther/account.rb
auther-2.1.0 app/presenters/auther/account.rb
auther-2.0.0 app/presenters/auther/account.rb