Sha256: fb3d137643a06043205dbc7fcc14d5af233c0a5a7197bcedec0490f423d72adf

Contents?: true

Size: 1.01 KB

Versions: 5

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

# This file is autogenerated by Deimos, Do NOT modify
module Schemas; module MyNamespace
  ### Primary Schema Class ###
  # Autogenerated Schema for Record at com.my-namespace.my-suborg.MyLongNamespaceSchema
  class MyLongNamespaceSchema < Deimos::SchemaClass::Record

    ### Attribute Accessors ###
    # @return [String]
    attr_accessor :test_id
    # @return [Integer]
    attr_accessor :some_int

    # @override
    def initialize(test_id: nil,
                   some_int: nil)
      super
      self.test_id = test_id
      self.some_int = some_int
    end

    # @override
    def schema
      'MyLongNamespaceSchema'
    end

    # @override
    def namespace
      'com.my-namespace.my-suborg'
    end

    def self.tombstone(key)
      record = self.allocate
      record.tombstone_key = key
      record.test_id = key
      record
    end

    # @override
    def as_json(_opts={})
      {
        'test_id' => @test_id,
        'some_int' => @some_int
      }
    end
  end
end; end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
deimos-ruby-2.0.0.pre.alpha2 spec/schemas/my_namespace/my_long_namespace_schema.rb
deimos-ruby-2.0.0.pre.alpha1 spec/schemas/my_namespace/my_long_namespace_schema.rb
deimos-ruby-1.24.2 spec/schemas/my_namespace/my_long_namespace_schema.rb
deimos-ruby-1.24.1 spec/schemas/my_namespace/my_long_namespace_schema.rb
deimos-ruby-1.24.0 spec/schemas/my_namespace/my_long_namespace_schema.rb