Class: Modulofcm::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/modulofcm/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



7
8
9
# File 'lib/modulofcm/response.rb', line 7

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/modulofcm/response.rb', line 7

def status
  @status
end

#successObject (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

Returns:

  • (Boolean)


15
# File 'lib/modulofcm/response.rb', line 15

def success? = success