Class: Clerk::Models::Operations::ListMachinesRequest
- Inherits:
-
Object
- Object
- Clerk::Models::Operations::ListMachinesRequest
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/operations/listmachines_request.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(query: nil, limit: 10, offset: 0, order_by: '-created_at') ⇒ ListMachinesRequest
constructor
A new instance of ListMachinesRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(query: nil, limit: 10, offset: 0, order_by: '-created_at') ⇒ ListMachinesRequest
Returns a new instance of ListMachinesRequest.
33 34 35 36 37 38 |
# File 'lib/clerk/models/operations/listmachines_request.rb', line 33 def initialize(query: nil, limit: 10, offset: 0, order_by: '-created_at') @query = query @limit = limit @offset = offset @order_by = order_by end |
Instance Method Details
#==(other) ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'lib/clerk/models/operations/listmachines_request.rb', line 41 def ==(other) return false unless other.is_a? self.class return false unless @query == other.query return false unless @limit == other.limit return false unless @offset == other.offset return false unless @order_by == other.order_by true end |