Method: RTX::API::Collection#initialize
- Defined in:
- lib/rtx/api/collection.rb
#initialize(client, resource_name, attrs = {}) ⇒ Collection
Returns a new instance of Collection.
6 7 8 9 10 11 |
# File 'lib/rtx/api/collection.rb', line 6 def initialize(client, resource_name, attrs = {}) @client = client @resource_name = resource_name.to_sym = symbolize_hash(attrs) @response = {} end |