Class: RestAccount
- Inherits:
-
OpenShift::Model
- Object
- OpenShift::Model
- RestAccount
- Defined in:
- app/models/rest_account.rb
Instance Attribute Summary collapse
-
#created_on ⇒ Object
Returns the value of attribute created_on.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username, created_on) ⇒ RestAccount
constructor
A new instance of RestAccount.
- #to_xml(options = {}) ⇒ Object
Constructor Details
#initialize(username, created_on) ⇒ RestAccount
Returns a new instance of RestAccount.
4 5 6 |
# File 'app/models/rest_account.rb', line 4 def initialize(username, created_on) self.username, self.created_on = username, created_on end |
Instance Attribute Details
#created_on ⇒ Object
Returns the value of attribute created_on.
2 3 4 |
# File 'app/models/rest_account.rb', line 2 def created_on @created_on end |
#username ⇒ Object
Returns the value of attribute username.
2 3 4 |
# File 'app/models/rest_account.rb', line 2 def username @username end |
Instance Method Details
#to_xml(options = {}) ⇒ Object
8 9 10 11 |
# File 'app/models/rest_account.rb', line 8 def to_xml(={}) [:tag_name] = "account" super() end |