module HALPresenter::Collection

Public Instance Methods

collection(of:, &block) click to toggle source
# File lib/hal_presenter/collection.rb, line 62
def collection(of:, &block)
  @__collection_properties = Properties.new(of, self, &block)
end

Protected Instance Methods

can_serialize_collection?() click to toggle source
# File lib/hal_presenter/collection.rb, line 72
def can_serialize_collection?
  !collection_properties.nil?
end
collection_properties() click to toggle source
# File lib/hal_presenter/collection.rb, line 68
def collection_properties
  @__collection_properties ||= __init_from_superclass(:collection_properties, default: nil)
end