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.



77
78
79
# File 'lib/aws-sdk-core/structure.rb', line 77

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.



81
82
83
# File 'lib/aws-sdk-core/structure.rb', line 81

def value
  self[member] if member
end