Class: BaseResource
- Inherits:
-
Object
- Object
- BaseResource
- Defined in:
- lib/pvdgm-bs-client/base_resource.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#prompter ⇒ Object
readonly
Returns the value of attribute prompter.
Instance Method Summary collapse
-
#initialize(opts) ⇒ BaseResource
constructor
A new instance of BaseResource.
Constructor Details
#initialize(opts) ⇒ BaseResource
Returns a new instance of BaseResource.
11 12 13 14 |
# File 'lib/pvdgm-bs-client/base_resource.rb', line 11 def initialize(opts) @options = opts @prompter = HighLine.new end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/pvdgm-bs-client/base_resource.rb', line 9 def @options end |
#prompter ⇒ Object (readonly)
Returns the value of attribute prompter.
9 10 11 |
# File 'lib/pvdgm-bs-client/base_resource.rb', line 9 def prompter @prompter end |