Module: RedboothRuby::Operations::Show::ClassMethods

Defined in:
lib/redbooth-ruby/operations/show.rb

Instance Method Summary collapse

Instance Method Details

#show(attributes = {}) ⇒ Copy::Base

Shows a given object



9
10
11
12
13
14
15
16
17
# File 'lib/redbooth-ruby/operations/show.rb', line 9

def show(attributes={})
  response = RedboothRuby.request(:get,
                                  nil,
                                  api_member_url(attributes[:id], :show),
                                  {},
                                  options_for_request(attributes)
                                 )
  new(response.data.merge(session: attributes[:session]))
end