Class: Clerk::Models::Operations::ResponseBody
- Inherits:
-
Object
- Object
- Clerk::Models::Operations::ResponseBody
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/operations/responsebody.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(active: false) ⇒ ResponseBody
constructor
A new instance of ResponseBody.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(active: false) ⇒ ResponseBody
Returns a new instance of ResponseBody.
19 20 21 22 23 24 |
# File 'lib/clerk/models/operations/responsebody.rb', line 19 def initialize(active: false) unless active == false raise ArgumentError, 'Invalid value for active' end @active = false end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 |
# File 'lib/clerk/models/operations/responsebody.rb', line 27 def ==(other) return false unless other.is_a? self.class return false unless @active == other.active true end |