module Grapeful::Endpoint
Public Instance Methods
ful(*args)
click to toggle source
# File lib/grapeful/endpoint.rb, line 4 def ful(*args) options = args.count > 1 ? args.extract_options! : {} key, object = if args.count == 2 && args.first.is_a?(Symbol) args else [nil, args.first] end @data ||= Hash.new @data[key] = object if key @data.merge!(options) body @data end