Module: VzaarApi::Lib::HasResourceUrl::ClassMethods
- Defined in:
- lib/vzaar_api/lib/has_resource_url.rb
Instance Method Summary collapse
Instance Method Details
#resource_url(path = nil, scope_id = nil) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/vzaar_api/lib/has_resource_url.rb', line 17 def resource_url(path=nil, scope_id=nil) ep = self::ENDPOINT args = ep.is_a?(Proc) ? [ep.call(scope_id, path), nil] : [ep, path] Api.resource_url *args end |