Sha256: d3d5dd67b6a478e60e28d7c3df3b0e21b584ec24b78a289bfd206ab3701ce82f

Contents?: true

Size: 854 Bytes

Versions: 31

Compression:

Stored size: 854 Bytes

Contents

require 'roar/representer'
require 'roar/representer/feature/http_verbs'
require 'roar/representer/feature/client'
# require 'roar/representer/json'
# require 'roar/rails/hal'
require 'roar/representer/json/hal'

module Billit
  module PriorityRepresenter
    include Roar::Representer::JSON::HAL
    # include Roar::Representer::JSON

    module Initializer
      def initialize
        extend Billit::PriorityRepresenter
        extend Roar::Representer::Feature::Client
        super
      end
    end

    def self.included(klass)
      klass.send :prepend, Initializer
      klass.send :include, Roar::Representer::Feature::HttpVerbs
    end

    property :type
    property :entry_date
    property :entry_message
    property :entry_chamber
    property :withdrawal_date
    property :withdrawal_message
    property :withdrawal_chamber

  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
billit_representers_argentina-0.9.17 lib/billit_representers_argentina/representers/priority_representer.rb
billit_representers_argentina-0.9.16 lib/billit_representers_argentina/representers/priority_representer.rb
billit_representers_argentina-0.9.14 lib/billit_representers_argentina/representers/priority_representer.rb
billit_representers_argentina-0.9.13 lib/billit_representers_argentina/representers/priority_representer.rb
billit_representers_argentina-0.9.12 lib/billit_representers_argentina/representers/priority_representer.rb
billit_representers_argentina-0.9.11 lib/billit_representers_argentina/representers/priority_representer.rb
billit_representers_argentina-0.9.10 lib/billit_representers_argentina/representers/priority_representer.rb
billit_representers-0.9.10 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.9.9 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.9.8 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.9.7 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.9.6 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.9.5 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.9.4 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.9.3 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.9.2 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.9.1 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.9.0 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.8.12 lib/billit_representers/representers/priority_representer.rb
billit_representers-0.8.11 lib/billit_representers/representers/priority_representer.rb