Class: Evertils::Common::Generic
- Inherits:
-
Object
- Object
- Evertils::Common::Generic
- Defined in:
- lib/evertils/common/generic.rb
Overview
Direct Known Subclasses
Authentication, Converter::Base, Entity::Base, Manager::Base, Query::Base
Instance Method Summary collapse
-
#bytesize(enc) ⇒ Object
Required as part of the thrift data conversion.
- #deprecation_notice(version, message) ⇒ Object
-
#encoding ⇒ Object
Required as part of the thrift data conversion.
-
#force_encoding(enc) ⇒ Object
Required as part of the thrift data conversion.
- #has_required_fields(hash, required) ⇒ Object
-
#initialize ⇒ Generic
constructor
A new instance of Generic.
Constructor Details
#initialize ⇒ Generic
Returns a new instance of Generic.
6 7 8 |
# File 'lib/evertils/common/generic.rb', line 6 def initialize self end |
Instance Method Details
#bytesize(enc) ⇒ Object
Required as part of the thrift data conversion
39 40 |
# File 'lib/evertils/common/generic.rb', line 39 def bytesize(enc) end |
#deprecation_notice(version, message) ⇒ Object
20 21 22 23 24 |
# File 'lib/evertils/common/generic.rb', line 20 def deprecation_notice(version, ) output = "Deprecated as of #{version}" output += "\nReason: #{}" if Notify.spit(output) end |
#encoding ⇒ Object
Required as part of the thrift data conversion
28 29 30 |
# File 'lib/evertils/common/generic.rb', line 28 def encoding Encoding::UTF_8 end |
#force_encoding(enc) ⇒ Object
Required as part of the thrift data conversion
34 35 |
# File 'lib/evertils/common/generic.rb', line 34 def force_encoding(enc) end |
#has_required_fields(hash, required) ⇒ Object
12 13 14 15 16 |
# File 'lib/evertils/common/generic.rb', line 12 def has_required_fields(hash, required) hash.keys.each do |key| required.include? key end end |