class VertexClient::Response::Base

Public Class Methods

new(vertex_response) click to toggle source
# File lib/vertex_client/responses/base.rb, line 6
def initialize(vertex_response)
  @body = vertex_response.body[:vertex_envelope][response_key].with_indifferent_access
end

Private Instance Methods

response_key() click to toggle source
# File lib/vertex_client/responses/base.rb, line 12
def response_key
  :"#{self.class.name.demodulize.underscore}_response"
end