Class: Round::ApplicationCollection
- Inherits:
-
Collection
- Object
- Base
- Collection
- Round::ApplicationCollection
- Defined in:
- lib/round/application.rb
Instance Attribute Summary
Attributes inherited from Collection
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Collection
#[], #add, #initialize, #method_missing, #populate_data, #refresh
Methods inherited from Base
association, hash_identifier, #hash_identifier, #initialize, #method_missing, #refresh
Constructor Details
This class inherits a constructor from Round::Collection
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Round::Collection
Instance Method Details
#content_type ⇒ Object
55 56 57 |
# File 'lib/round/application.rb', line 55 def content_type Round::Application end |
#create(name, callback_url = nil) ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/round/application.rb', line 59 def create(name, callback_url = nil) params = { name: name } params.merge!(callback_url: callback_url) if callback_url app_resource = @resource.create(params) app = Round::Application.new( resource: app_resource, client: @client ) add(app) app end |