Class: SwaggerParser::Info

Inherits:
SourceBasedObject show all
Includes:
Extendable
Defined in:
lib/swagger_parser/info.rb

Instance Attribute Summary

Attributes inherited from SourceBasedObject

#source

Instance Method Summary collapse

Methods included from Extendable

#extensions

Methods inherited from SourceBasedObject

#initialize

Constructor Details

This class inherits a constructor from SwaggerParser::SourceBasedObject

Instance Method Details

#contactObject

Returns:

  • (Object)


11
12
13
# File 'lib/swagger_parser/info.rb', line 11

def contact
  SwaggerParser::Contact.new(source["contact"])
end

#descriptionObject

Returns:

  • (Object)


16
17
18
# File 'lib/swagger_parser/info.rb', line 16

def description
  source["description"]
end

#licenseObject

Returns:

  • (Object)


21
22
23
# File 'lib/swagger_parser/info.rb', line 21

def license
  SwaggerParser::License.new(source["license"])
end

#terms_of_serviceObject

Returns:

  • (Object)


26
27
28
# File 'lib/swagger_parser/info.rb', line 26

def terms_of_service
  source["termsOfService"]
end

#titleObject

Returns:

  • (Object)


31
32
33
# File 'lib/swagger_parser/info.rb', line 31

def title
  source["title"]
end

#versionObject

Returns:

  • (Object)


36
37
38
# File 'lib/swagger_parser/info.rb', line 36

def version
  source["version"]
end