Class: RestAccount

Inherits:
OpenShift::Model
  • Object
show all
Defined in:
app/models/rest_account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_onObject

Returns the value of attribute created_on.



2
3
4
# File 'app/models/rest_account.rb', line 2

def created_on
  @created_on
end

#usernameObject

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(options={})
  options[:tag_name] = "account"
  super(options)
end