Class: RestPack::Core::Client::Domain
- Inherits:
-
Object
- Object
- RestPack::Core::Client::Domain
- Defined in:
- lib/restpack-core-client/models/domain.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
Returns the value of attribute application.
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#configurations ⇒ Object
Returns the value of attribute configurations.
-
#host ⇒ Object
Returns the value of attribute host.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(data, channel) ⇒ Domain
constructor
A new instance of Domain.
Constructor Details
#initialize(data, channel) ⇒ Domain
Returns a new instance of Domain.
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/restpack-core-client/models/domain.rb', line 5 def initialize(data, channel) @configurations = [] @id = data[:id] @host = data[:host] @channel = channel @application = channel.get_application(data[:application_id]) @channel.domains << self @application.domains << self end |
Instance Attribute Details
#application ⇒ Object
Returns the value of attribute application.
3 4 5 |
# File 'lib/restpack-core-client/models/domain.rb', line 3 def application @application end |
#channel ⇒ Object
Returns the value of attribute channel.
3 4 5 |
# File 'lib/restpack-core-client/models/domain.rb', line 3 def channel @channel end |
#configurations ⇒ Object
Returns the value of attribute configurations.
3 4 5 |
# File 'lib/restpack-core-client/models/domain.rb', line 3 def configurations @configurations end |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/restpack-core-client/models/domain.rb', line 3 def host @host end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/restpack-core-client/models/domain.rb', line 3 def id @id end |