lib/core_pro.rb
# Returns the ID name based on the resource type
#
# @return [String]
Returns the ID name based on the resource type
Returns the ID name based on the resource type
def resource_id
      resource_name = self.class.name.to_s.split('::').last
      resource_name[0] = resource_name[0].downcase
      "#{resource_name}Id"
    end
def resource_id resource_name = self . class . name . to_s . split ( '::' ) . last resource_name [ 0 ] = resource_name [ 0 ] . downcase "#{resource_name}Id" end
Returns the ID name based on the resource type
Returns the ID name based on the resource type
None
String