Class: KOSapiClient::Entity::Id

Inherits:
String
  • Object
show all
Defined in:
lib/kosapi_client/entity/id.rb

Class Method Summary collapse

Class Method Details

.parse(str) ⇒ Object



5
6
7
8
# File 'lib/kosapi_client/entity/id.rb', line 5

def self.parse(str)
  id = str.split(':').last
  new(id)
end