Class: B2bCenterApi::WebService::Types::ServiceRow

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

Overview

Список услуг

Constant Summary

Constants inherited from BaseType

BaseType::NO_INSPECT_ATTRS

Instance Attribute Summary collapse

Attributes inherited from BaseType

#date_fields, #soap_client

Instance Method Summary collapse

Methods inherited from BaseType

#inspect, #to_h

Methods included from B2bCenterApi::WebService::TypeCast

included

Constructor Details

#initialize(args = {}) ⇒ ServiceRow

Returns a new instance of ServiceRow.



11
12
13
14
# File 'lib/b2b_center_api/web_service/types/service_row.rb', line 11

def initialize(args = {})
  @id = args[:id]
  @name = args[:name]
end

Instance Attribute Details

#idInteger (readonly)

Returns Номер услуги.

Returns:

  • (Integer)

    Номер услуги



7
8
9
# File 'lib/b2b_center_api/web_service/types/service_row.rb', line 7

def id
  @id
end

#nameString (readonly)

Returns Название услуги.

Returns:

  • (String)

    Название услуги



9
10
11
# File 'lib/b2b_center_api/web_service/types/service_row.rb', line 9

def name
  @name
end