Class: Shaman::TryoutApps::Resource::Response
- Inherits:
-
Object
- Object
- Shaman::TryoutApps::Resource::Response
- Defined in:
- lib/shaman/tryout_apps/resource.rb
Direct Known Subclasses
Project::ListResponse, Shaman::TryoutApps::Resource::Release::CreateResponse
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
7 8 9 |
# File 'lib/shaman/tryout_apps/resource.rb', line 7 def initialize(response) @response = response end |
Instance Method Details
#success? ⇒ Boolean
11 12 13 |
# File 'lib/shaman/tryout_apps/resource.rb', line 11 def success? response.status.success? end |