Class: Yookassa::Entities::Payout

Inherits:
Base
  • Object
show all
Defined in:
lib/yookassa/entities/payout.rb

Overview

Payout entity with status helpers.

Instance Attribute Summary

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize, #respond_to_missing?, #to_h

Constructor Details

This class inherits a constructor from Yookassa::Entities::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Yookassa::Entities::Base

Instance Method Details

#canceled?Boolean

Returns true if the payout was canceled.

Returns:

  • (Boolean)

    true if the payout was canceled



15
16
17
# File 'lib/yookassa/entities/payout.rb', line 15

def canceled?
  status == "canceled"
end

#succeeded?Boolean

Returns true if the payout completed successfully.

Returns:

  • (Boolean)

    true if the payout completed successfully



10
11
12
# File 'lib/yookassa/entities/payout.rb', line 10

def succeeded?
  status == "succeeded"
end