Class: ExistsResponse
- Defined in:
- lib/dto/posting/exists_response.rb
Overview
NOT USED
Class ExistsResponse represents server response on exists
Posting API request. Server response is sent to from_hash
method which creates object with attribute success
accessible via getter:
response = ExistsResponse.from_hash("success" => "true")
response.success # => true
Instance Attribute Summary collapse
-
#exists ⇒ Object
Returns the value of attribute exists.
-
#failures ⇒ Object
Returns the value of attribute failures.
-
#indexed ⇒ Object
Returns the value of attribute indexed.
-
#postKey ⇒ Object
Returns the value of attribute postKey.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ ExistsResponse
constructor
A new instance of ExistsResponse.
Methods inherited from Struct
Constructor Details
#initialize(hash = {}) ⇒ ExistsResponse
Returns a new instance of ExistsResponse.
11 12 13 14 15 |
# File 'lib/dto/posting/exists_response.rb', line 11 def initialize(hash = {}) hash.each do |key, value| self.send("#{key}=".to_sym, value ) end end |
Instance Attribute Details
#exists ⇒ Object
Returns the value of attribute exists
10 11 12 |
# File 'lib/dto/posting/exists_response.rb', line 10 def exists @exists end |
#failures ⇒ Object
Returns the value of attribute failures
10 11 12 |
# File 'lib/dto/posting/exists_response.rb', line 10 def failures @failures end |
#indexed ⇒ Object
Returns the value of attribute indexed
10 11 12 |
# File 'lib/dto/posting/exists_response.rb', line 10 def indexed @indexed end |
#postKey ⇒ Object
Returns the value of attribute postKey
10 11 12 |
# File 'lib/dto/posting/exists_response.rb', line 10 def postKey @postKey end |