lib/render/schema.rb in render-0.0.1 vs lib/render/schema.rb in render-0.0.2
- old
+ new
@@ -37,10 +37,10 @@
def array_of_schemas?(definition = {})
return false unless definition
definition.keys.include?(:attributes)
end
- def pull(options = {})
+ def render(options = {})
endpoint = options.delete(:endpoint)
data = Render.live ? request(endpoint) : options
{ title.to_sym => serialize(data) }
end