Class: PuppetDB::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/puppetdb/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



3
4
5
# File 'lib/puppetdb/response.rb', line 3

def data
  @data
end

#total_recordsObject (readonly)

Returns the value of attribute total_records.



3
4
5
# File 'lib/puppetdb/response.rb', line 3

def total_records
  @total_records
end