module Roar::JSON::HAL::Links::InstanceMethods
Public Instance Methods
_links()
click to toggle source
# File lib/roar/json/hal.rb, line 86 def _links links end
Private Instance Methods
prepare_link_for(href, options)
click to toggle source
Calls superclass method
# File lib/roar/json/hal.rb, line 91 def prepare_link_for(href, options) return super(href, options) unless options[:array] # returns Hyperlink. ArrayLink.new(options[:rel], href.collect { |opts| Hypermedia::Hyperlink.new(opts) }) end