Class: Modulofcm::Response
- Inherits:
-
Object
- Object
- Modulofcm::Response
- Defined in:
- lib/modulofcm/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(success:, status:, body:) ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
Constructor Details
#initialize(success:, status:, body:) ⇒ Response
Returns a new instance of Response.
9 10 11 12 13 |
# File 'lib/modulofcm/response.rb', line 9 def initialize(success:, status:, body:) @success = success @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
7 8 9 |
# File 'lib/modulofcm/response.rb', line 7 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/modulofcm/response.rb', line 7 def status @status end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
7 8 9 |
# File 'lib/modulofcm/response.rb', line 7 def success @success end |
Instance Method Details
#success? ⇒ Boolean
15 |
# File 'lib/modulofcm/response.rb', line 15 def success? = success |