Class: Diesel::Swagger::Security
- Defined in:
- lib/diesel/swagger/security.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(id) ⇒ Security
constructor
A new instance of Security.
- #serializable_hash ⇒ Object
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
#id ⇒ Object (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_hash ⇒ Object
15 16 17 |
# File 'lib/diesel/swagger/security.rb', line 15 def serializable_hash scopes || [] end |