Module: Protip::Resource::ClassMethods

Defined in:
lib/protip/resource.rb

Instance Attribute Summary collapse

Instance Attribute Details

#base_pathObject



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

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.



141
142
143
# File 'lib/protip/resource.rb', line 141

def client
  @client
end

#converterObject (readonly)

Returns the value of attribute converter.



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

def converter
  @converter
end

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end