Module: Protip::Resource::ClassMethods
- Defined in:
- lib/protip/resource.rb
Instance Attribute Summary collapse
- #base_path ⇒ Object
-
#client ⇒ Object
Returns the value of attribute client.
- #converter ⇒ Object
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Attribute Details
#base_path ⇒ Object
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 |
#client ⇒ Object
Returns the value of attribute client.
143 144 145 |
# File 'lib/protip/resource.rb', line 143 def client @client end |
#converter ⇒ Object
153 154 155 |
# File 'lib/protip/resource.rb', line 153 def converter @converter || (@_standard_converter ||= Protip::StandardConverter.new) end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
145 146 147 |
# File 'lib/protip/resource.rb', line 145 def @message end |