Module: Protip::Resource::ClassMethods

Defined in:
lib/protip/resource.rb

Instance Attribute Summary collapse

Instance Attribute Details

#base_pathObject



148
149
150
# File 'lib/protip/resource.rb', line 148

def base_path
  @base_path == nil ? raise(RuntimeError.new 'Base path not yet set') : @base_path.gsub(/\/$/, '')
end

#clientObject

Returns the value of attribute client.



143
144
145
# File 'lib/protip/resource.rb', line 143

def client
  @client
end

#converterObject



153
154
155
# File 'lib/protip/resource.rb', line 153

def converter
  @converter || (@_standard_converter ||= Protip::StandardConverter.new)
end

#messageObject (readonly)

Returns the value of attribute message.



145
146
147
# File 'lib/protip/resource.rb', line 145

def message
  @message
end