Class: DynamoDB::Binary
- Inherits:
-
Object
- Object
- DynamoDB::Binary
- Defined in:
- lib/ddbcli/ddb-binary.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Binary
constructor
A new instance of Binary.
- #inspect ⇒ Object
- #value ⇒ Object (also: #to_s, #to_str)
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
#inspect ⇒ Object
16 17 18 |
# File 'lib/ddbcli/ddb-binary.rb', line 16 def inspect @value.inspect end |
#value ⇒ Object 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 |