Class: BaseResource

Inherits:
Object
  • Object
show all
Defined in:
lib/pvdgm-svc-client/base_resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ BaseResource

Returns a new instance of BaseResource.



11
12
13
14
15
16
17
# File 'lib/pvdgm-svc-client/base_resource.rb', line 11

def initialize(opts)
  @options = opts
  @prompter = HighLine.new
  @prompter.wrap_at = 120
  @prompter.page_at = 22

end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/pvdgm-svc-client/base_resource.rb', line 9

def options
  @options
end

#prompterObject (readonly)

Returns the value of attribute prompter.



9
10
11
# File 'lib/pvdgm-svc-client/base_resource.rb', line 9

def prompter
  @prompter
end