Class: Deliverhq::Domain
- Inherits:
-
Object
- Object
- Deliverhq::Domain
- Defined in:
- lib/deliverhq/models/domain.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#verification_token ⇒ Object
readonly
Returns the value of attribute verification_token.
-
#verified_at ⇒ Object
readonly
Returns the value of attribute verified_at.
Class Method Summary collapse
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize(params) ⇒ Domain
constructor
A new instance of Domain.
Constructor Details
#initialize(params) ⇒ Domain
Returns a new instance of Domain.
6 7 8 9 10 11 12 |
# File 'lib/deliverhq/models/domain.rb', line 6 def initialize(params) @id = params['id'] @account_id = params['account_id'] @name = params['name'] @verification_token = params['verification_token'] @verified_at = params['verified_at'] end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
4 5 6 |
# File 'lib/deliverhq/models/domain.rb', line 4 def account_id @account_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/deliverhq/models/domain.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/deliverhq/models/domain.rb', line 4 def name @name end |
#verification_token ⇒ Object (readonly)
Returns the value of attribute verification_token.
4 5 6 |
# File 'lib/deliverhq/models/domain.rb', line 4 def verification_token @verification_token end |
#verified_at ⇒ Object (readonly)
Returns the value of attribute verified_at.
4 5 6 |
# File 'lib/deliverhq/models/domain.rb', line 4 def verified_at @verified_at end |