class Evertils::Common::Generic

Public Class Methods

new() click to toggle source

@since 0.3.2

# File lib/evertils/common/generic.rb, line 6
def initialize
  self
end

Public Instance Methods

bytesize(enc) click to toggle source

Required as part of the thrift data conversion @since 0.3.3

# File lib/evertils/common/generic.rb, line 39
def bytesize(enc)
end
deprecation_notice(version, message) click to toggle source

@since 0.3.2

# File lib/evertils/common/generic.rb, line 20
def deprecation_notice(version, message)
  output = "Deprecated as of #{version}"
  output += "\nReason: #{message}" if message
  Notify.spit(output)
end
encoding() click to toggle source

Required as part of the thrift data conversion @since 0.3.3

# File lib/evertils/common/generic.rb, line 28
def encoding
  Encoding::UTF_8
end
force_encoding(enc) click to toggle source

Required as part of the thrift data conversion @since 0.3.3

# File lib/evertils/common/generic.rb, line 34
def force_encoding(enc)
end
has_required_fields(hash, required) click to toggle source

@since 0.3.2

# File lib/evertils/common/generic.rb, line 12
def has_required_fields(hash, required)
  hash.keys.each do |key|
    required.include? key
  end
end