lib/patch_ruby/models/allocation.rb in patch_ruby-1.2.4 vs lib/patch_ruby/models/allocation.rb in patch_ruby-1.2.5
- old
+ new
@@ -12,14 +12,17 @@
require 'date'
module Patch
class Allocation
+ # A unique uid for the record. UIDs will be prepended by all_prod or all_test depending on the mode it was created in.
attr_accessor :id
+ # A boolean indicating if this project is a production or test mode project.
attr_accessor :production
+ # The amount (in grams) of allocated carbon offsets.
attr_accessor :mass_g
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
@@ -34,9 +37,16 @@
{
:'id' => :'String',
:'production' => :'Boolean',
:'mass_g' => :'Integer'
}
+ end
+
+ # Set with nullable attributes.
+ def self.openapi_nullable
+ nullable_properties = Set.new
+
+ nullable_properties
end
# Allows models with corresponding API classes to delegate API operations to those API classes
# Exposes Model.operation_id which delegates to ModelsApi.new.operation_id
# Eg. Order.create_order delegates to OrdersApi.new.create_order