Class: B2bCenterApi::WebService::Types::ArrayOfServices

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

Overview

Список доступных услуг

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) ⇒ ServiceRow

Returns:



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

def self.from_response(response)
  r = response.result
  return if r.nil?
  Array(r[:services]).map do |service|
    ServiceRow.new(service)
  end
end