class TinyGate::Types::SwitchOrgResponse

Attributes

body[R]
response[R]

Public Class Methods

new(response) click to toggle source
# File lib/tiny_gate/types/switch_org_response.rb, line 7
def initialize(response)
  @response = response
  @body = JSON.parse(response.body)
end

Public Instance Methods

new_token_url() click to toggle source
# File lib/tiny_gate/types/switch_org_response.rb, line 16
def new_token_url
  @body['url']
end
success?() click to toggle source
# File lib/tiny_gate/types/switch_org_response.rb, line 12
def success?
  response.status == 200
end