Class: Aws::Xray::Sql

Inherits:
Struct
  • Object
show all
Defined in:
lib/aws/xray/sql.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#database_versionObject

Returns the value of attribute database_version

Returns:

  • (Object)

    the current value of database_version



3
4
5
# File 'lib/aws/xray/sql.rb', line 3

def database_version
  @database_version
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



3
4
5
# File 'lib/aws/xray/sql.rb', line 3

def url
  @url
end

Class Method Details

.build(url: nil, database_version: nil) ⇒ Object



4
5
6
# File 'lib/aws/xray/sql.rb', line 4

def self.build(url: nil, database_version: nil)
  new(url, database_version)
end

Instance Method Details

#to_hObject



8
9
10
# File 'lib/aws/xray/sql.rb', line 8

def to_h
  super.delete_if {|_, v| v.nil? }
end