Sha256: bfd65f22ee17b208f68c7ae66033677ea790ee868e70748d7015f2bfb33acdd2

Contents?: true

Size: 1.27 KB

Versions: 41

Compression:

Stored size: 1.27 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.WidgetTheSecond
  class WidgetTheSecond < Deimos::SchemaClass::Record

    ### Attribute Accessors ###
    # @return [Integer]
    attr_accessor :id
    # @return [Integer]
    attr_accessor :widget_id
    # @return [String]
    attr_accessor :model_id
    # @return [Integer]
    attr_accessor :updated_at
    # @return [Integer]
    attr_accessor :created_at

    # @override
    def initialize(id: nil,
                   widget_id: nil,
                   model_id: nil,
                   updated_at: nil,
                   created_at: nil)
      super
      self.id = id
      self.widget_id = widget_id
      self.model_id = model_id
      self.updated_at = updated_at
      self.created_at = created_at
    end

    # @override
    def schema
      'WidgetTheSecond'
    end

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

    # @override
    def as_json(_opts={})
      {
        'id' => @id,
        'widget_id' => @widget_id,
        'model_id' => @model_id,
        'updated_at' => @updated_at,
        'created_at' => @created_at
      }
    end
  end
end; end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
deimos-ruby-2.0.0.pre.alpha2 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-2.0.0.pre.alpha1 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.24.2 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.24.1 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.24.0 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.23.3 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.23.2 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.23.1.pre.beta6 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.23.1.pre.beta5 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.23.1.pre.beta4 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.23.1.pre.beta3 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.23.1.pre.beta2 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.23.1.pre.beta1 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.23.0 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.22.5 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.22.4 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.22.3 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.22.2 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.22.1 spec/schemas/my_namespace/widget_the_second.rb
deimos-ruby-1.22 spec/schemas/my_namespace/widget_the_second.rb