Class: SDM::Athena
- Inherits:
-
Object
- Object
- SDM::Athena
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#output ⇒ Object
Returns the value of attribute output.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#region ⇒ Object
Returns the value of attribute region.
-
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, access_key: nil, secret_access_key: nil, output: nil, port_override: nil, region: nil) ⇒ Athena
constructor
A new instance of Athena.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, access_key: nil, secret_access_key: nil, output: nil, port_override: nil, region: nil) ⇒ Athena
Returns a new instance of Athena.
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 |
# File 'lib/models/porcelain.rb', line 667 def initialize( id: nil, name: nil, healthy: nil, tags: nil, access_key: nil, secret_access_key: nil, output: nil, port_override: nil, region: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if != nil @tags = end if access_key != nil @access_key = access_key end if secret_access_key != nil @secret_access_key = secret_access_key end if output != nil @output = output end if port_override != nil @port_override = port_override end if region != nil @region = region end end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
657 658 659 |
# File 'lib/models/porcelain.rb', line 657 def access_key @access_key end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
653 654 655 |
# File 'lib/models/porcelain.rb', line 653 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
649 650 651 |
# File 'lib/models/porcelain.rb', line 649 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
651 652 653 |
# File 'lib/models/porcelain.rb', line 651 def name @name end |
#output ⇒ Object
Returns the value of attribute output.
661 662 663 |
# File 'lib/models/porcelain.rb', line 661 def output @output end |
#port_override ⇒ Object
Returns the value of attribute port_override.
663 664 665 |
# File 'lib/models/porcelain.rb', line 663 def port_override @port_override end |
#region ⇒ Object
Returns the value of attribute region.
665 666 667 |
# File 'lib/models/porcelain.rb', line 665 def region @region end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
659 660 661 |
# File 'lib/models/porcelain.rb', line 659 def secret_access_key @secret_access_key end |
#tags ⇒ Object
Tags is a map of key, value pairs.
655 656 657 |
# File 'lib/models/porcelain.rb', line 655 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
707 708 709 710 711 712 713 |
# File 'lib/models/porcelain.rb', line 707 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |