Module: Aws::Structure::Union Private

Defined in:
lib/aws-sdk-core/structure.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#memberObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


75
76
77
# File 'lib/aws-sdk-core/structure.rb', line 75

def member
  self.members.select { |k| self[k] != nil }.first
end

#valueObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


79
80
81
# File 'lib/aws-sdk-core/structure.rb', line 79

def value
  self[member] if member
end