Class: Udb::Company
- Inherits:
-
Object
- Object
- Udb::Company
- Extended by:
- T::Sig
- Defined in:
- lib/udb/obj/database_obj.rb
Overview
A company description
Instance Method Summary collapse
- #initialize(data) constructor
-
#name ⇒ String
Company name.
- #to_s ⇒ String
-
#url ⇒ String
Company website.
Constructor Details
#initialize(data)
461 462 463 |
# File 'lib/udb/obj/database_obj.rb', line 461 def initialize(data) @data = data end |
Instance Method Details
#name ⇒ String
Returns Company name.
467 |
# File 'lib/udb/obj/database_obj.rb', line 467 def name = T.must(@data["name"]) |
#to_s ⇒ String
474 |
# File 'lib/udb/obj/database_obj.rb', line 474 def to_s = name |
#url ⇒ String
Returns Company website.
471 |
# File 'lib/udb/obj/database_obj.rb', line 471 def url = T.must(@data["url"]) |