lib/patch_ruby/models/preference.rb in patch_ruby-1.2.4 vs lib/patch_ruby/models/preference.rb in patch_ruby-1.2.5
- old
+ new
@@ -12,14 +12,17 @@
require 'date'
module Patch
class Preference
+ # A unique uid for the record. UIDs will be prepended by pre_prod or pre_test depending on the mode it was created in.
attr_accessor :id
+ # Percentage of total purchased offsets that should go to a project. Default is 100%.
attr_accessor :allocation_percentage
+ # An object returning the Project record this Preference is associated with. See the [Project section](/?id=projects) for the full schema.
attr_accessor :project
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
@@ -34,9 +37,16 @@
{
:'id' => :'String',
:'allocation_percentage' => :'Integer',
:'project' => :'Project'
}
+ 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