Class: B2bCenterApi::WebService::Types::Id

Inherits:
BaseType
  • Object
show all
Defined in:
lib/b2b_center_api/web_service/types/id.rb

Overview

ID

Constant Summary

Constants inherited from BaseType

BaseType::NO_INSPECT_ATTRS

Instance Attribute Summary

Attributes inherited from BaseType

#date_fields, #soap_client

Class Method Summary collapse

Methods inherited from BaseType

#inspect, #to_h

Methods included from B2bCenterApi::WebService::TypeCast

included

Class Method Details

.from_response(response) ⇒ Object



7
8
9
10
11
# File 'lib/b2b_center_api/web_service/types/id.rb', line 7

def self.from_response(response)
  r = response.result
  return if r.nil?
  convert(r[:value], :Integer)
end