Class: Delphix::Source
Instance Attribute Summary
Attributes included from Base
Class Method Summary collapse
-
.list ⇒ Object
class methods.
Instance Method Summary collapse
-
#base_endpoint ⇒ Object
inherited operations.
- #disable ⇒ Object
- #enable ⇒ Object
-
#initialize(reference, details = nil) ⇒ Source
constructor
A new instance of Source.
-
#start ⇒ Object
specific operations.
- #stop ⇒ Object
- #virtual? ⇒ Boolean
Methods included from Base
#name, #reference, #refresh_details, #to_s, #type
Constructor Details
#initialize(reference, details = nil) ⇒ Source
Returns a new instance of Source.
5 6 7 |
# File 'lib/delphix/source.rb', line 5 def initialize(reference, details=nil) super(reference, details) end |
Class Method Details
Instance Method Details
#base_endpoint ⇒ Object
inherited operations
34 35 36 |
# File 'lib/delphix/source.rb', line 34 def base_endpoint '/resources/json/delphix/source' end |
#disable ⇒ Object
24 25 26 |
# File 'lib/delphix/source.rb', line 24 def disable Delphix::Response.new( Delphix.post("#{base_endpoint}/#{reference}/disable")) end |
#enable ⇒ Object
20 21 22 |
# File 'lib/delphix/source.rb', line 20 def enable Delphix::Response.new( Delphix.post("#{base_endpoint}/#{reference}/enable")) end |
#start ⇒ Object
specific operations
12 13 14 |
# File 'lib/delphix/source.rb', line 12 def start Delphix::Response.new( Delphix.post("#{base_endpoint}/#{reference}/start")) end |
#stop ⇒ Object
16 17 18 |
# File 'lib/delphix/source.rb', line 16 def stop Delphix::Response.new( Delphix.post("#{base_endpoint}/#{reference}/stop")) end |
#virtual? ⇒ Boolean
28 29 30 |
# File 'lib/delphix/source.rb', line 28 def virtual? @details['virtual'] == true end |