Module: AWS::Core::OptionGrammar::Descriptors::Blob

Extended by:
NoArgs
Defined in:
lib/aws/core/option_grammar.rb

Instance Method Summary collapse

Methods included from NoArgs

apply

Instance Method Details

#encode_value(value) ⇒ Object



114
115
116
# File 'lib/aws/core/option_grammar.rb', line 114

def encode_value(value)
  Base64.encode64(value.to_s)
end

#validate(value, context = nil) ⇒ Object



109
110
111
112
# File 'lib/aws/core/option_grammar.rb', line 109

def validate(value, context = nil)
  raise format_error("string value", context) unless
    value.respond_to? :to_str
end