class Rambo::RamlModels::Headers
Attributes
headers[RW]
Public Class Methods
new(headers)
click to toggle source
# File lib/rambo/raml_models/headers.rb, line 6 def initialize(headers) @headers = headers end
Public Instance Methods
add(hash)
click to toggle source
# File lib/rambo/raml_models/headers.rb, line 10 def add(hash) headers.merge!(hash) self end
merge!(other)
click to toggle source
# File lib/rambo/raml_models/headers.rb, line 15 def merge!(other) add(other.headers) end
pretty()
click to toggle source
# File lib/rambo/raml_models/headers.rb, line 19 def pretty JSON.pretty_generate(headers).gsub("\":", "\" =>") end