Class: RamlParser::Model::SecurityScheme

Inherits:
Object
  • Object
show all
Defined in:
lib/raml_parser/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type = nil, description = nil, described_by = nil, settings = {}) ⇒ SecurityScheme

Returns a new instance of SecurityScheme.



142
143
144
145
146
147
148
# File 'lib/raml_parser/model.rb', line 142

def initialize(name, type = nil, description = nil, described_by = nil, settings = {})
  @name = name
  @type = type
  @description = description
  @described_by = described_by
  @settings = settings
end

Instance Attribute Details

#described_byObject

Returns the value of attribute described_by.



140
141
142
# File 'lib/raml_parser/model.rb', line 140

def described_by
  @described_by
end

#descriptionObject

Returns the value of attribute description.



140
141
142
# File 'lib/raml_parser/model.rb', line 140

def description
  @description
end

#nameObject

Returns the value of attribute name.



140
141
142
# File 'lib/raml_parser/model.rb', line 140

def name
  @name
end

#settingsObject

Returns the value of attribute settings.



140
141
142
# File 'lib/raml_parser/model.rb', line 140

def settings
  @settings
end

#typeObject

Returns the value of attribute type.



140
141
142
# File 'lib/raml_parser/model.rb', line 140

def type
  @type
end