Class: Hieracles::Puppetdb::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, total_records = nil, notifications = nil) ⇒ Response

Returns a new instance of Response.



7
8
9
10
11
# File 'lib/hieracles/puppetdb/response.rb', line 7

def initialize(data, total_records = nil, notifications = nil)
  @data = data
  @total_records = total_records
  @notifications = notifications
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



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

def data
  @data
end

#notificationsObject (readonly)

Returns the value of attribute notifications.



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

def notifications
  @notifications
end

#total_recordsObject (readonly)

Returns the value of attribute total_records.



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

def total_records
  @total_records
end