Class: Hieracles::Puppetdb::Response
- Inherits:
-
Object
- Object
- Hieracles::Puppetdb::Response
- Defined in:
- lib/hieracles/puppetdb/response.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#notifications ⇒ Object
readonly
Returns the value of attribute notifications.
-
#total_records ⇒ Object
readonly
Returns the value of attribute total_records.
Instance Method Summary collapse
-
#initialize(data, total_records = nil, notifications = nil) ⇒ Response
constructor
A new instance of Response.
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
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/hieracles/puppetdb/response.rb', line 4 def data @data end |
#notifications ⇒ Object (readonly)
Returns the value of attribute notifications.
4 5 6 |
# File 'lib/hieracles/puppetdb/response.rb', line 4 def notifications @notifications end |
#total_records ⇒ Object (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 |