Sha256: 59d89d180cfb71e81b2a1a5a6e4b7fb9c33bd44eeceae3deb49f0c73f21f1730

Contents?: true

Size: 1.9 KB

Versions: 39

Compression:

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

    ### Attribute Accessors ###
    # @return [Integer]
    attr_accessor :id
    # @return [Integer]
    attr_accessor :wibble_id
    # @return [String]
    attr_accessor :name
    # @return [String]
    attr_accessor :floop
    # @return [Integer]
    attr_accessor :birthday_int
    # @return [Integer]
    attr_accessor :birthday_long
    # @return [nil, Integer]
    attr_accessor :birthday_optional
    # @return [Integer]
    attr_accessor :updated_at
    # @return [Integer]
    attr_accessor :created_at

    # @override
    def initialize(id: nil,
                   wibble_id: nil,
                   name: nil,
                   floop: nil,
                   birthday_int: nil,
                   birthday_long: nil,
                   birthday_optional: nil,
                   updated_at: nil,
                   created_at: nil)
      super
      self.id = id
      self.wibble_id = wibble_id
      self.name = name
      self.floop = floop
      self.birthday_int = birthday_int
      self.birthday_long = birthday_long
      self.birthday_optional = birthday_optional
      self.updated_at = updated_at
      self.created_at = created_at
    end

    # @override
    def schema
      'Wibble'
    end

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

    # @override
    def as_json(_opts={})
      {
        'id' => @id,
        'wibble_id' => @wibble_id,
        'name' => @name,
        'floop' => @floop,
        'birthday_int' => @birthday_int,
        'birthday_long' => @birthday_long,
        'birthday_optional' => @birthday_optional,
        'updated_at' => @updated_at,
        'created_at' => @created_at
      }
    end
  end
end; end

Version data entries

39 entries across 39 versions & 1 rubygems

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