class Rambo::RamlModels::Response

Attributes

schema[R]

Public Class Methods

new(raml) click to toggle source
# File lib/rambo/raml_models/response.rb, line 6
def initialize(raml)
  @schema = raml
end

Public Instance Methods

bodies() click to toggle source
# File lib/rambo/raml_models/response.rb, line 14
def bodies
  @bodies ||= schema.bodies.map {|body| Rambo::RamlModels::Body.new(body) }
end
status_code() click to toggle source
# File lib/rambo/raml_models/response.rb, line 10
def status_code
  schema.code
end