Sha256: b8bb8ba54b1d6e9ef70974dd434bf4c71e56389e67dc5186f4826332afc23914

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

module Radriar
  module Representable
    mattr_accessor :representer_namespace

    [:hypermedia, :translate_keys].each do |option|
      mattr_accessor option.to_sym

      self.define_singleton_method "#{option}?".to_sym do
        !!send(option.to_sym)
      end
    end
  end
end

require "representable/hash"
require "roar/representer/json/hal"
require "radriar/roar/links"
require "radriar/roar/representers"
require "radriar/roar/key_translation"
require "radriar/roar/hal"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radriar-0.1.0.alpha.3 lib/radriar/representable.rb
radriar-0.1.0.alpha.2 lib/radriar/representable.rb