Class: Apiture::Swagger::Operation

Inherits:
Node
  • Object
show all
Defined in:
lib/apiture/swagger/operation.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) ⇒ Operation

Returns a new instance of Operation.



26
27
28
29
# File 'lib/apiture/swagger/operation.rb', line 26

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

Instance Attribute Details

#idObject (readonly) Also known as: method_name

Returns the value of attribute id.



7
8
9
# File 'lib/apiture/swagger/operation.rb', line 7

def id
  @id
end