Sha256: ef8f553585d3fb840091a758537cbb3c91ef4f311f61780b20bbda546e018047

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

module Rambo
  module RamlModels
    class Resource

      attr_reader :schema

      def initialize(raml_resource)
        @schema = raml_resource
      end

      def uri_partial
        schema.uri_partial
      end

      alias_method :to_s, :uri_partial

      def http_methods
        @http_methods ||= schema.methods.map {|method| Rambo::RamlModels::Method.new(method) }
      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/resource.rb
rambo_ruby-0.2.2 lib/rambo/raml_models/resource.rb
rambo_ruby-0.2.1 lib/rambo/raml_models/resource.rb
rambo_ruby-0.2.0 lib/rambo/raml_models/resource.rb
rambo_ruby-0.1.0 lib/raml_models/resource.rb