Sha256: 4285d1450def01b4e4730738d0fab9b93f33d6fb8c372ab9fe298b08b8efff76

Contents?: true

Size: 667 Bytes

Versions: 6

Compression:

Stored size: 667 Bytes

Contents

module {{namespace_module}}
  module Accounts
    class Presenter
      include Shogun::Presenter
      include Accounts

      def id
        source.id
      end

      def signature
        source.signature
      end

      def username
        source.username
      end

      def email
        source.email
      end

      def name
        source.name
      end

      def created_at
        source.created_at.to_datetime.rfc3339
      end

      def updated_at
        source.updated_at.to_datetime.rfc3339 if source.updated_at
      end

      def destroyed_at
        source.destroyed_at.to_datetime.rfc3339 if source.destroyed_at
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shogun-6.4.2 scaffold/new/project/lib/namespace/accounts/presenter.rb
shogun-6.4.1 scaffold/new/project/lib/namespace/accounts/presenter.rb
shogun-6.4.0 scaffold/new/project/lib/namespace/accounts/presenter.rb
shogun-6.3.0 scaffold/new/project/lib/namespace/accounts/presenter.rb
shogun-6.2.3 scaffold/new/project/lib/namespace/accounts/presenter.rb
shogun-6.2.2 scaffold/new/project/lib/namespace/accounts/presenter.rb