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.
-
#href ⇒ Object
Returns the value of attribute href.
-
#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 17 |
# File 'lib/restpack_core_client/models/domain.rb', line 5 def initialize(data, channel) @configurations = [] @id = data[:id].to_i @host = data[:host] @href = data[:href] @channel = channel @application = channel.get_application(data[:links][:application]) @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 |
#href ⇒ Object
Returns the value of attribute href.
3 4 5 |
# File 'lib/restpack_core_client/models/domain.rb', line 3 def href @href 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 |