Sha256: 62f031d7eba156518526c880878b9ba37f01146363b2f83cdd4876fcef9a5de8

Contents?: true

Size: 356 Bytes

Versions: 5

Compression:

Stored size: 356 Bytes

Contents

module Rambo
  module RamlModels
    class Api
      attr_reader :schema

      def initialize(parsed_raml)
        @schema = parsed_raml
      end

      def resources
        @resources ||= schema.resources.map {|resource| Rambo::RamlModels::Resource.new(resource) }
      end

      def title
        @title ||= schema.title
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rambo_ruby-0.2.3 lib/rambo/raml_models/api.rb
rambo_ruby-0.2.2 lib/rambo/raml_models/api.rb
rambo_ruby-0.2.1 lib/rambo/raml_models/api.rb
rambo_ruby-0.2.0 lib/rambo/raml_models/api.rb
rambo_ruby-0.1.0 lib/raml_models/api.rb