mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-25 07:36:40 +00:00
Uses attribute reader instead of accessor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module Schemable
|
||||
class AttributeSchemaGenerator
|
||||
attr_accessor :model_definition, :configuration, :model, :schema_modifier, :response
|
||||
attr_reader :model_definition, :configuration, :model, :schema_modifier, :response
|
||||
|
||||
def initialize(model_definition)
|
||||
@model_definition = model_definition
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module Schemable
|
||||
class IncludedSchemaGenerator
|
||||
attr_accessor :model_definition, :schema_modifier, :relationships
|
||||
attr_reader :model_definition, :schema_modifier, :relationships
|
||||
|
||||
def initialize(model_definition)
|
||||
@model_definition = model_definition
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module Schemable
|
||||
class RelationshipSchemaGenerator
|
||||
attr_accessor :model_definition, :schema_modifier, :relationships
|
||||
attr_reader :model_definition, :schema_modifier, :relationships
|
||||
|
||||
def initialize(model_definition)
|
||||
@model_definition = model_definition
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module Schemable
|
||||
class RequestSchemaGenerator
|
||||
attr_accessor :model_definition, :schema_modifier
|
||||
attr_reader :model_definition, :schema_modifier
|
||||
|
||||
def initialize(model_definition)
|
||||
@model_definition = model_definition
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module Schemable
|
||||
class ResponseSchemaGenerator
|
||||
attr_accessor :model_definition, :model
|
||||
attr_reader :model_definition, :model, :schema_modifier
|
||||
|
||||
def initialize(model_definition)
|
||||
@model_definition = model_definition
|
||||
|
||||
Reference in New Issue
Block a user