Method: Atomsphere::Action::ClassMethods#run

Defined in:
lib/atomsphere/action.rb

#runObject



21
22
23
24
25
26
27
28
29
30
# File 'lib/atomsphere/action.rb', line 21

def run
  @api_response ||= api_client.send(*[
    api_method,
    action,
    api_method.eql?(:get) ? nil : request
  ].compact)

  @response ||= @api_response.to_hash
  self
end