Class: ActiveMocker::ModelSchema::Methods

Inherits:
Object
  • Object
show all
Defined in:
lib/active_mocker/model_schema.rb

Defined Under Namespace

Classes: Arguments

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, arguments:, type:) ⇒ Methods

Returns a new instance of Methods.



244
245
246
247
248
249
250
251
# File 'lib/active_mocker/model_schema.rb', line 244

def initialize( name:,
                arguments:,
                type:
              )
  @name      = name
  @arguments = Arguments.new(arguments)
  @type      = type
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



242
243
244
# File 'lib/active_mocker/model_schema.rb', line 242

def arguments
  @arguments
end

#nameObject (readonly)

Returns the value of attribute name.



242
243
244
# File 'lib/active_mocker/model_schema.rb', line 242

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



242
243
244
# File 'lib/active_mocker/model_schema.rb', line 242

def type
  @type
end