Class: Apiture::Swagger::SecurityDefinition

Inherits:
Node
  • Object
show all
Defined in:
lib/apiture/swagger/security_definition.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#errors

Instance Method Summary collapse

Methods inherited from Node

attribute, attribute_names, #collect_errors, collect_errors, #extensions, hash, hash_names, inherited, list, list_names, #serializable_hash, #to_json, #valid?, #validate

Methods included from Utils::Inflections

acronym_regex, acronyms, #camelize, #constantize, #underscore

Constructor Details

#initialize(id) ⇒ SecurityDefinition

Returns a new instance of SecurityDefinition.



17
18
19
20
# File 'lib/apiture/swagger/security_definition.rb', line 17

def initialize(id)
  super()
  @id = id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/apiture/swagger/security_definition.rb', line 6

def id
  @id
end