class RubyBranch::API::Response

Attributes

response[RW]

Public Class Methods

new(response) click to toggle source
# File lib/ruby_branch/api/response.rb, line 10
def initialize(response)
  @response = response
end

Public Instance Methods

json() click to toggle source
# File lib/ruby_branch/api/response.rb, line 14
def json
  JSON.parse(body, symbolize_names: true)
end