Class: Wowzer::Interview
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
all, client, find, #initialize, #method_missing
Constructor Details
This class inherits a constructor from Wowzer::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Wowzer::Resource
Instance Method Details
#applications ⇒ Object
4 5 6 7 8 |
# File 'lib/wowzer/interview.rb', line 4 def applications applications_link.['wowzer:application'].map do |application_resource| Application.new(application_resource) end end |
#applications_link ⇒ Object
10 11 12 |
# File 'lib/wowzer/interview.rb', line 10 def applications_link resource.links['wowzer:applications'] end |
#create_application(options = {}) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/wowzer/interview.rb', line 14 def create_application(={}) response = applications_link.post() resource = ::Hyperclient::Resource.new(response.body, self.class.client) Application.new(resource) end |