class AutotaskRuby::ZoneInfo
Constants
- ENDPOINT
Attributes
raw_result[R]
Public Class Methods
new(username)
click to toggle source
# File lib/autotask_ruby/zone_info.rb, line 9 def initialize(username) @client = Savon.client(wsdl: './atws.wsdl', endpoint: ENDPOINT) @raw_result = @client.call(:get_zone_info, message: { 'UserName' => username }) @zone_info = @raw_result.body[:get_zone_info_response][:get_zone_info_result] end
Public Instance Methods
error_code()
click to toggle source
# File lib/autotask_ruby/zone_info.rb, line 15 def error_code @zone_info[:error_code].to_i end
method_missing(method, *_args)
click to toggle source
@param [Object] method @param [Array] _args @return [Object]
# File lib/autotask_ruby/zone_info.rb, line 30 def method_missing(method, *_args) @zone_info[method] end
url()
click to toggle source
# File lib/autotask_ruby/zone_info.rb, line 23 def url @zone_info[:url] end
web_url()
click to toggle source
# File lib/autotask_ruby/zone_info.rb, line 19 def web_url @zone_info[:web_url] end