Sha256: f61e6f08427c62ec7d37aae9f01859e03f37a15f2547255bb0a06f92e92ce802

Contents?: true

Size: 373 Bytes

Versions: 33

Compression:

Stored size: 373 Bytes

Contents

module Arrest
  # A nested resource has no own url
  # It is an embedded entity in an actual RestResource or
  # an other NestedResource
  class NestedResource
    include HasAttributes
    include BelongsTo

    attr_reader :parent

    def initialize parent, h
      @parent = parent
      init_from_hash h
    end

    def context
      parent.context
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
arrest-0.0.58 lib/arrest/nested_resource.rb
arrest-0.0.57 lib/arrest/nested_resource.rb
arrest-0.0.56 lib/arrest/nested_resource.rb
arrest-0.0.54 lib/arrest/nested_resource.rb
arrest-0.0.53 lib/arrest/nested_resource.rb
arrest-0.0.52 lib/arrest/nested_resource.rb
arrest-0.0.51 lib/arrest/nested_resource.rb
arrest-0.0.50 lib/arrest/nested_resource.rb
arrest-0.0.49 lib/arrest/nested_resource.rb
arrest-0.0.48 lib/arrest/nested_resource.rb
arrest-0.0.47 lib/arrest/nested_resource.rb
arrest-0.0.46 lib/arrest/nested_resource.rb
arrest-0.0.44 lib/arrest/nested_resource.rb
arrest-0.0.43 lib/arrest/nested_resource.rb
arrest-0.0.42 lib/arrest/nested_resource.rb
arrest-0.0.41 lib/arrest/nested_resource.rb
arrest-0.0.40 lib/arrest/nested_resource.rb
arrest-0.0.39 lib/arrest/nested_resource.rb
arrest-0.0.38 lib/arrest/nested_resource.rb
arrest-0.0.37 lib/arrest/nested_resource.rb