Class: TitlePage::SearchResults
- Inherits:
-
Object
- Object
- TitlePage::SearchResults
- Defined in:
- lib/titlepage/titlepage_utils.rb
Overview
urn:TitleQuerySearchResults
iSBN - SOAP::SOAPString
eAN - SOAP::SOAPString
iSBN13 - SOAP::SOAPString
product - TitlePage::Product
Instance Attribute Summary collapse
-
#eAN ⇒ Object
Returns the value of attribute eAN.
-
#iSBN ⇒ Object
Returns the value of attribute iSBN.
-
#iSBN13 ⇒ Object
Returns the value of attribute iSBN13.
-
#product ⇒ Object
Returns the value of attribute product.
Instance Method Summary collapse
-
#initialize(iSBN = nil, eAN = nil, iSBN13 = nil, product = nil) ⇒ SearchResults
constructor
A new instance of SearchResults.
-
#method_missing(method, *arguments) ⇒ Object
An older version of soap4r that was used to generate boilerplate code in versions of this gem <= 0.9.3 created methods that started with capitals.
Constructor Details
#initialize(iSBN = nil, eAN = nil, iSBN13 = nil, product = nil) ⇒ SearchResults
Returns a new instance of SearchResults.
261 262 263 264 265 266 |
# File 'lib/titlepage/titlepage_utils.rb', line 261 def initialize(iSBN = nil, eAN = nil, iSBN13 = nil, product = nil) @iSBN = iSBN @eAN = eAN @iSBN13 = iSBN13 @product = product end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *arguments) ⇒ Object
An older version of soap4r that was used to generate boilerplate code in versions of this gem <= 0.9.3 created methods that started with capitals. Detect when some code calls these old method names and print a deprecation warning.
272 273 274 275 276 277 278 279 280 281 282 |
# File 'lib/titlepage/titlepage_utils.rb', line 272 def method_missing(method, *arguments) new_method = method.to_s[0,1].downcase new_method << method.to_s[1,20] if self.respond_to?(new_method) $stderr.puts "Warning: #{method} is deprecated. Use #{new_method} instead" self.send(new_method, *arguments) else super end end |
Instance Attribute Details
#eAN ⇒ Object
Returns the value of attribute eAN.
257 258 259 |
# File 'lib/titlepage/titlepage_utils.rb', line 257 def eAN @eAN end |
#iSBN ⇒ Object
Returns the value of attribute iSBN.
256 257 258 |
# File 'lib/titlepage/titlepage_utils.rb', line 256 def iSBN @iSBN end |
#iSBN13 ⇒ Object
Returns the value of attribute iSBN13.
258 259 260 |
# File 'lib/titlepage/titlepage_utils.rb', line 258 def iSBN13 @iSBN13 end |
#product ⇒ Object
Returns the value of attribute product.
259 260 261 |
# File 'lib/titlepage/titlepage_utils.rb', line 259 def product @product end |