Class: Io::Flow::V0::Models::PaymentRequestReviewCheckStatus
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::PaymentRequestReviewCheckStatus
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of PaymentRequestReviewCheckStatus for this value, creating a new instance for an unknown value.
-
.failed ⇒ Object
The check has failed.
-
.from_string(value) ⇒ Object
Returns the instance of PaymentRequestReviewCheckStatus for this value, or nil if not found.
-
.passed ⇒ Object
The check has passed.
Instance Method Summary collapse
-
#initialize(value) ⇒ PaymentRequestReviewCheckStatus
constructor
A new instance of PaymentRequestReviewCheckStatus.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ PaymentRequestReviewCheckStatus
Returns a new instance of PaymentRequestReviewCheckStatus.
24475 24476 24477 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24475 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
24473 24474 24475 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24473 def value @value end |
Class Method Details
.ALL ⇒ Object
24495 24496 24497 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24495 def PaymentRequestReviewCheckStatus.ALL @@all ||= [PaymentRequestReviewCheckStatus.passed, PaymentRequestReviewCheckStatus.failed] end |
.apply(value) ⇒ Object
Returns the instance of PaymentRequestReviewCheckStatus for this value, creating a new instance for an unknown value
24480 24481 24482 24483 24484 24485 24486 24487 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24480 def PaymentRequestReviewCheckStatus.apply(value) if value.instance_of?(PaymentRequestReviewCheckStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || PaymentRequestReviewCheckStatus.new(value)) end end |
.failed ⇒ Object
The check has failed.
24505 24506 24507 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24505 def PaymentRequestReviewCheckStatus.failed @@_failed ||= PaymentRequestReviewCheckStatus.new('failed') end |
.from_string(value) ⇒ Object
Returns the instance of PaymentRequestReviewCheckStatus for this value, or nil if not found
24490 24491 24492 24493 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24490 def PaymentRequestReviewCheckStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) PaymentRequestReviewCheckStatus.ALL.find { |v| v.value == value } end |
.passed ⇒ Object
The check has passed.
24500 24501 24502 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24500 def PaymentRequestReviewCheckStatus.passed @@_passed ||= PaymentRequestReviewCheckStatus.new('passed') end |
Instance Method Details
#to_hash ⇒ Object
24509 24510 24511 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24509 def to_hash value end |