class Rambo::RamlModels::Resource

Attributes

headers[R]
schema[R]

Public Class Methods

new(raml_resource, headers=Rambo::RamlModels::Headers.new({})) click to toggle source
# File lib/rambo/raml_models/resource.rb, line 8
def initialize(raml_resource, headers=Rambo::RamlModels::Headers.new({}))
  @schema  = raml_resource
  @headers = headers
end

Public Instance Methods

http_methods() click to toggle source
# File lib/rambo/raml_models/resource.rb, line 19
def http_methods
  @http_methods ||= schema.http_methods.map {|method| Rambo::RamlModels::Method.new(method, headers) }
end
to_s()
Alias for: uri_partial
uri_partial() click to toggle source
# File lib/rambo/raml_models/resource.rb, line 13
def uri_partial
  schema.uri_partial
end
Also aliased as: to_s