module Nibo::ApiResource::Retrieve
Public Class Methods
included(base)
click to toggle source
# File lib/nibo/api_resource/retrieve.rb, line 13 def self.included(base) base.extend(Retrieve) end
Public Instance Methods
retrieve(obj_id)
click to toggle source
# File lib/nibo/api_resource/retrieve.rb, line 4 def retrieve(obj_id) method = :get url_with_method = "#{url}#{url_method(method)}" params = object_param(obj_id, method) response = api_request(url_with_method,method,params) create_from(response) end