Sha256: 1796c00fc7a7f771ed6dc08934b7b8c46f32a8f0dd0875fb5754028766d704b5
Contents?: true
Size: 1.22 KB
Versions: 41
Compression:
Stored size: 1.22 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.Widget class Widget < Deimos::SchemaClass::Record ### Attribute Accessors ### # @return [Integer] attr_accessor :id # @return [Integer] attr_accessor :widget_id # @return [String] attr_accessor :name # @return [Integer] attr_accessor :updated_at # @return [Integer] attr_accessor :created_at # @override def initialize(id: nil, widget_id: nil, name: nil, updated_at: nil, created_at: nil) super self.id = id self.widget_id = widget_id self.name = name self.updated_at = updated_at self.created_at = created_at end # @override def schema 'Widget' end # @override def namespace 'com.my-namespace' end # @override def as_json(_opts={}) { 'id' => @id, 'widget_id' => @widget_id, 'name' => @name, 'updated_at' => @updated_at, 'created_at' => @created_at } end end end; end
Version data entries
41 entries across 41 versions & 1 rubygems