Class: Rubyist::Gem::Version
- Inherits:
-
Object
- Object
- Rubyist::Gem::Version
- Defined in:
- lib/rubyist.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#downloads ⇒ Object
readonly
Returns the value of attribute downloads.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Version
constructor
A new instance of Version.
Constructor Details
#initialize(hash) ⇒ Version
Returns a new instance of Version.
60 61 62 63 64 65 |
# File 'lib/rubyist.rb', line 60 def initialize hash @number = hash['number'] @downloads = hash['downloads_count'] @summary = hash['summary'] @created_at = Time.xmlschema hash['created_at'] end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
58 59 60 |
# File 'lib/rubyist.rb', line 58 def created_at @created_at end |
#downloads ⇒ Object (readonly)
Returns the value of attribute downloads.
58 59 60 |
# File 'lib/rubyist.rb', line 58 def downloads @downloads end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
58 59 60 |
# File 'lib/rubyist.rb', line 58 def number @number end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
58 59 60 |
# File 'lib/rubyist.rb', line 58 def summary @summary end |