Class: PuppetDB::Response
- Inherits:
-
Object
- Object
- PuppetDB::Response
- Defined in:
- lib/puppetdb/response.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#total_records ⇒ Object
readonly
Returns the value of attribute total_records.
Instance Method Summary collapse
-
#initialize(data, total_records = nil) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(data, total_records = nil) ⇒ Response
Returns a new instance of Response.
5 6 7 8 |
# File 'lib/puppetdb/response.rb', line 5 def initialize(data, total_records = nil) @data = data @total_records = total_records end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/puppetdb/response.rb', line 3 def data @data end |
#total_records ⇒ Object (readonly)
Returns the value of attribute total_records.
3 4 5 |
# File 'lib/puppetdb/response.rb', line 3 def total_records @total_records end |