Class: Backlog::Object::UserIcon
- Inherits:
-
Object
- Object
- Backlog::Object::UserIcon
- Defined in:
- lib/backlog/object.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#updated_on ⇒ Object
readonly
Returns the value of attribute updated_on.
Instance Method Summary collapse
-
#initialize(user_icon) ⇒ UserIcon
constructor
A new instance of UserIcon.
Constructor Details
#initialize(user_icon) ⇒ UserIcon
Returns a new instance of UserIcon.
60 61 62 63 64 65 66 |
# File 'lib/backlog/object.rb', line 60 def initialize(user_icon) @id = user_icon['id'] @content_type = user_icon['content_type'] # backlog.getUserIcon['data'] isn't encoded, so encode here. @data = XMLRPC::Base64.encode(user_icon['data']).delete("\n") @updated_on = user_icon['updated_on'] end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
67 68 69 |
# File 'lib/backlog/object.rb', line 67 def content_type @content_type end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
67 68 69 |
# File 'lib/backlog/object.rb', line 67 def data @data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
67 68 69 |
# File 'lib/backlog/object.rb', line 67 def id @id end |
#updated_on ⇒ Object (readonly)
Returns the value of attribute updated_on.
67 68 69 |
# File 'lib/backlog/object.rb', line 67 def updated_on @updated_on end |