Class: ManuscriptBaseurlResponse
- Inherits:
-
ManuscriptResponse
- Object
- Response
- ManuscriptResponse
- ManuscriptBaseurlResponse
- Defined in:
- lib/refworks/manuscript/baseurl/manuscript_baseurl_response.rb
Instance Attribute Summary collapse
-
#baseurl ⇒ Object
readonly
Returns the value of attribute baseurl.
Attributes inherited from Response
#body, #parsed_response, #process_time, #result_code, #result_msg, #result_msg_code
Instance Method Summary collapse
-
#initialize(raw_response) ⇒ ManuscriptBaseurlResponse
constructor
A new instance of ManuscriptBaseurlResponse.
Constructor Details
#initialize(raw_response) ⇒ ManuscriptBaseurlResponse
Returns a new instance of ManuscriptBaseurlResponse.
4 5 6 7 8 9 10 11 12 |
# File 'lib/refworks/manuscript/baseurl/manuscript_baseurl_response.rb', line 4 def initialize(raw_response) super(raw_response) if result_code != "200" return end @baseurl = self.parsed_response["refworks"]["RWResult"]["BaseURL"] end |
Instance Attribute Details
#baseurl ⇒ Object (readonly)
Returns the value of attribute baseurl.
2 3 4 |
# File 'lib/refworks/manuscript/baseurl/manuscript_baseurl_response.rb', line 2 def baseurl @baseurl end |