Class: Wowzer::Application
Instance Attribute Summary
Attributes inherited from Resource
#resource
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Resource
all, client, find, #initialize, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Wowzer::Resource
Class Method Details
.absolute_resource_link ⇒ Object
22
23
24
|
# File 'lib/wowzer/application.rb', line 22
def self.absolute_resource_link
client.links["wowzer:#{resource_name}"]
end
|
Instance Method Details
#delete ⇒ Object
26
27
28
29
|
# File 'lib/wowzer/application.rb', line 26
def delete
response = resource.links['self'].delete
response.status == 204
end
|
#resend ⇒ Object
4
5
6
7
8
9
10
11
12
|
# File 'lib/wowzer/application.rb', line 4
def resend
if resource.links['wowzer:application:invitation']
response = resource.links['wowzer:application:invitation'].post({})
else
raise ActionNotAllowed
end
response.status == 204
end
|
#response? ⇒ Boolean
14
15
16
|
# File 'lib/wowzer/application.rb', line 14
def response?
!response.blank?
end
|