Class: DynamoDB::Binary

Inherits:
Object
  • Object
show all
Defined in:
lib/ddbcli/ddb-binary.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Binary

Returns a new instance of Binary.



5
6
7
# File 'lib/ddbcli/ddb-binary.rb', line 5

def initialize(value)
  @value = value
end

Instance Method Details

#inspectObject



16
17
18
# File 'lib/ddbcli/ddb-binary.rb', line 16

def inspect
  @value.inspect
end

#valueObject Also known as: to_s, to_str



9
10
11
# File 'lib/ddbcli/ddb-binary.rb', line 9

def value
  Base64.encode64(@value).delete("\n")
end