Sha256: 11394ce22f640720bc2527ebd7ddcfbada46fa16622b1fcdff573a28cc1b123b
Contents?: true
Size: 903 Bytes
Versions: 2
Compression:
Stored size: 903 Bytes
Contents
module Useless module Doc module Core # Documentation for an entire API. # # @!attribute [r] url # @return [String] a the URL of the API. # # @!attribute [r] description # @return [String] a description of the API. # # @!attribute [r] timestamp # @return [Time] the time that this API doc was last updated. # # @!attribute [r] resources # @return [Array<Resource>] the resources included in the API. # class API attr_accessor :url, :description, :timestamp, :resources # @param [Hash] attrs corresponds to the class's instance attributes. # def initialize(attrs = {}) @url = attrs[:url] @description = attrs[:description] @timestamp = attrs[:timestamp] @resources = attrs[:resources] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
useless-doc-0.2.3 | lib/useless/doc/core/api.rb |
useless-doc-0.2.2 | lib/useless/doc/core/api.rb |