Sha256: 83b862845094e5640656c6dabad75e7eaba5eb7b4d79c8431b978a30db33c80b
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
module SwaggerYard class ListingInfo attr_reader :description, :resource_path, :authorizations def initialize(yard_object) @description = yard_object.docstring if tag = yard_object.tags.detect {|t| t.tag_name == "resource_path"} @resource_path = tag.text.downcase end @authorizations = yard_object.tags.select {|t| t.tag_name == "authorize_with"}.map(&:text) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swagger_yard-0.1.0 | lib/swagger_yard/listing_info.rb |