Sha256: 2459965375232bce4583fa9c48b19f6c8d39990c1678b258f47c9893ec13af19

Contents?: true

Size: 320 Bytes

Versions: 14

Compression:

Stored size: 320 Bytes

Contents

module Rambo
  module RamlModels
    class Response
      attr_reader :schema

      def initialize(raml)
        @schema = raml
      end

      def status_code
        schema.code
      end

      def bodies
        @bodies ||= schema.bodies.map {|body| Rambo::RamlModels::Body.new(body) }
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rambo_ruby-0.7.1 lib/rambo/raml_models/response.rb
rambo_ruby-0.7.0 lib/rambo/raml_models/response.rb
rambo_ruby-0.6.0 lib/rambo/raml_models/response.rb
rambo_ruby-0.5.0 lib/rambo/raml_models/response.rb
rambo_ruby-0.4.0 lib/rambo/raml_models/response.rb
rambo_ruby-0.3.3 lib/rambo/raml_models/response.rb
rambo_ruby-0.3.2 lib/rambo/raml_models/response.rb
rambo_ruby-0.3.1 lib/rambo/raml_models/response.rb
rambo_ruby-0.3.0 lib/rambo/raml_models/response.rb
rambo_ruby-0.2.3 lib/rambo/raml_models/response.rb
rambo_ruby-0.2.2 lib/rambo/raml_models/response.rb
rambo_ruby-0.2.1 lib/rambo/raml_models/response.rb
rambo_ruby-0.2.0 lib/rambo/raml_models/response.rb
rambo_ruby-0.1.0 lib/raml_models/response.rb