Module: Ronin::DB::Model::HasName::InstanceMethods

Defined in:
lib/ronin/db/model/has_name.rb

Overview

Instance methods that are added when Ronin::DB::Model::HasName is included into a model.

Instance Method Summary collapse

Instance Method Details

#to_sString

Converts the named resource into a String.

Returns:

  • (String)

    The name of the resource.



95
96
97
# File 'lib/ronin/db/model/has_name.rb', line 95

def to_s
  self.name.to_s
end