Method: RHC::Rest::Base#initialize

Defined in:
lib/rhc/rest/base.rb

#initialize(attrs = nil, client = nil) ⇒ Base

Returns a new instance of Base.



11
12
13
14
15
# File 'lib/rhc/rest/base.rb', line 11

def initialize(attrs=nil, client=nil)
  @attributes = (attrs || {}).stringify_keys!
  @attributes['messages'] ||= []
  @client = client
end