Class: Diesel::Swagger::Security

Inherits:
Node
  • Object
show all
Defined in:
lib/diesel/swagger/security.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, #to_json, #valid?, #validate

Methods included from Utils::Inflections

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

Constructor Details

#initialize(id) ⇒ Security

Returns a new instance of Security.



10
11
12
13
# File 'lib/diesel/swagger/security.rb', line 10

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/diesel/swagger/security.rb', line 6

def id
  @id
end

Instance Method Details

#serializable_hashObject



15
16
17
# File 'lib/diesel/swagger/security.rb', line 15

def serializable_hash
  scopes || []
end