class Aspire::Object::Module
Attributes
code[RW]
@!attribute [rw] code
@return [String] the module code
name[RW]
@!attribute [rw] name
@return [String] the module name
Public Class Methods
new(uri, factory, json: nil, ld: nil)
click to toggle source
Initialises a new Module
instance
Calls superclass method
Aspire::Object::Base::new
# File lib/aspire/object/module.rb, line 19 def initialize(uri, factory, json: nil, ld: nil) super(uri, factory) self.code = get_property('code', json) || get_property(AIISO_CODE, ld) self.name = get_property('name', json) || get_property(AIISO_NAME, ld) end
Public Instance Methods
to_s()
click to toggle source
Returns a string representation of the Module
instance (the module name) @return [String] the string representation of the Module
instance
Calls superclass method
Aspire::Object::Base#to_s
# File lib/aspire/object/module.rb, line 31 def to_s name.to_s || super end