class Conreality::Binary

Represents a Conreality binary.

Constants

KEY
TABLE

Attributes

data[R]

The binary data.

@return [String]

id[R]

The binary's sequential identifier.

@return [Integer]

sha256[R]

The binary's unique identifier (SHA-256 fingerprint).

@return [String]

type[RW]

The binary's MIME content type.

@return [String]

Public Class Methods

new(session, id) click to toggle source

@param session [Session] @param id [#to_i]

Calls superclass method
# File lib/conreality/binary.rb, line 37
def initialize(session, id)
  super(session)
  @id = id.to_i
end

Public Instance Methods

inspect() click to toggle source

Returns a developer-friendly representation of this binary.

@return [String]

# File lib/conreality/binary.rb, line 46
def inspect
  sprintf("#<%s:%#0x(id: %s)>", self.class.name, self.__id__, @id)
end