Class: Clicksign::Resources::Notarial::BulkRequirement::OperationResult
- Inherits:
-
Object
- Object
- Clicksign::Resources::Notarial::BulkRequirement::OperationResult
- Defined in:
- lib/clicksign/resources/notarial/bulk_requirement.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#requirement ⇒ Object
readonly
Returns the value of attribute requirement.
Instance Method Summary collapse
-
#initialize(index:, op:, requirement:, errors:, raw:) ⇒ OperationResult
constructor
A new instance of OperationResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(index:, op:, requirement:, errors:, raw:) ⇒ OperationResult
Returns a new instance of OperationResult.
10 11 12 13 14 15 16 |
# File 'lib/clicksign/resources/notarial/bulk_requirement.rb', line 10 def initialize(index:, op:, requirement:, errors:, raw:) @index = index @op = op @requirement = requirement @errors = errors @raw = raw end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
8 9 10 |
# File 'lib/clicksign/resources/notarial/bulk_requirement.rb', line 8 def errors @errors end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
8 9 10 |
# File 'lib/clicksign/resources/notarial/bulk_requirement.rb', line 8 def index @index end |
#op ⇒ Object (readonly)
Returns the value of attribute op.
8 9 10 |
# File 'lib/clicksign/resources/notarial/bulk_requirement.rb', line 8 def op @op end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
8 9 10 |
# File 'lib/clicksign/resources/notarial/bulk_requirement.rb', line 8 def raw @raw end |
#requirement ⇒ Object (readonly)
Returns the value of attribute requirement.
8 9 10 |
# File 'lib/clicksign/resources/notarial/bulk_requirement.rb', line 8 def requirement @requirement end |
Instance Method Details
#success? ⇒ Boolean
18 19 20 |
# File 'lib/clicksign/resources/notarial/bulk_requirement.rb', line 18 def success? errors.nil? || (errors.is_a?(Array) && errors.empty?) end |