Class: B2bCenterApi::WebService::BaseType
- Inherits:
-
Object
- Object
- B2bCenterApi::WebService::BaseType
- Includes:
- TypeCast
- Defined in:
- lib/b2b_center_api/web_service/base_type.rb
Direct Known Subclasses
Types::ArrayOfIds, Types::AuctionOffer, Types::AuctionParticipant, Types::B2bFile, Types::FirmInfo, Types::Lot, Types::TenderData, Types::TenderLotResult, Types::TenderLotResults, Types::TenderOffer, Types::TenderParticipant
Constant Summary collapse
- NO_INSPECT_ATTRS =
[:@soap_client]
Instance Attribute Summary collapse
-
#soap_client ⇒ Object
writeonly
Sets the attribute soap_client.
Instance Method Summary collapse
Methods included from TypeCast
Instance Attribute Details
#soap_client=(value) ⇒ Object (writeonly)
Sets the attribute soap_client
11 12 13 |
# File 'lib/b2b_center_api/web_service/base_type.rb', line 11 def soap_client=(value) @soap_client = value end |
Instance Method Details
#inspect ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/b2b_center_api/web_service/base_type.rb', line 15 def inspect vars = instance_variables NO_INSPECT_ATTRS.each { |a| vars.delete(a) } vars = vars.map { |v| "#{v}=#{instance_variable_get(v).inspect}" } vars = vars.join(', ') "<#{self.class}: #{vars}>" end |
#to_h ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/b2b_center_api/web_service/base_type.rb', line 23 def to_h hash = {} vars = instance_variables NO_INSPECT_ATTRS.each { |a| vars.delete(a) } vars.each { |var| hash[var.to_s.delete('@').to_sym] = instance_variable_get(var) } hash end |