Sha256: 0eeaaf36f1be016ca6e8e2081a2a4b83b5918b9de02b86745e1d439b8344b01c

Contents?: true

Size: 524 Bytes

Versions: 5

Compression:

Stored size: 524 Bytes

Contents

module Restfulie
  module Common
    module Representation
      class Json
        class Link
          def initialize(obj)
            @obj = obj
          end
          
          def type
            @obj.type
          end
          
          def href
            @obj.href
          end
          
          def rel
            @obj.rel
          end
              
          def method_missing(symbol, *args, &block)
            @obj.send(symbol, *args, &block)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
restfulie-1.0.0.beta1 lib/restfulie/common/representation/json/link.rb
restfulie-0.1.0.beta1 lib/restfulie/common/representation/json/link.rb
restfulie-0.9.3 lib/restfulie/common/representation/json/link.rb
restfulie-0.9.1 lib/restfulie/common/representation/json/link.rb
restfulie-0.8.1 lib/restfulie/common/representation/json/link.rb