Class: Avm::Instances::Application
- Inherits:
-
Object
- Object
- Avm::Instances::Application
- Includes:
- Entries
- Defined in:
- lib/avm/instances/application.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id) ⇒ Application
constructor
A new instance of Application.
- #instance(suffix) ⇒ Object
- #name ⇒ Object
- #to_s ⇒ Object
Methods included from Entries
#entry, #full_entry_path, #inherited_entry_value, #other_entry_value, #path_prefix, #read_entry, #read_entry_optional
Constructor Details
#initialize(id) ⇒ Application
Returns a new instance of Application.
12 13 14 |
# File 'lib/avm/instances/application.rb', line 12 def initialize(id) @id = id.to_s end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
10 11 12 |
# File 'lib/avm/instances/application.rb', line 10 def id @id end |
Instance Method Details
#instance(suffix) ⇒ Object
20 21 22 |
# File 'lib/avm/instances/application.rb', line 20 def instance(suffix) ::Avm::Instances::Base.new(self, suffix) end |
#name ⇒ Object
24 25 26 |
# File 'lib/avm/instances/application.rb', line 24 def name entry(::Avm::Instances::EntryKeys::NAME).read end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/avm/instances/application.rb', line 16 def to_s id end |