class Raml::Response
Public Class Methods
new(name, properties, parent)
click to toggle source
Calls superclass method
Raml::PropertiesNode::new
# File lib/raml/node/response.rb, line 13 def initialize(name, properties, parent) super @name = name.to_i end
Public Instance Methods
merge(other)
click to toggle source
@private
Calls superclass method
Raml::Merge#merge
# File lib/raml/node/response.rb, line 19 def merge(other) raise MergeError, "Response status codes don't match." if name != other.name super merge_properties other, :headers merge_properties other, :bodies self end