Class: Rubyist::Gem::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyist.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject (readonly)

Returns the value of attribute created_at.



58
59
60
# File 'lib/rubyist.rb', line 58

def created_at
  @created_at
end

#downloadsObject (readonly)

Returns the value of attribute downloads.



58
59
60
# File 'lib/rubyist.rb', line 58

def downloads
  @downloads
end

#numberObject (readonly)

Returns the value of attribute number.



58
59
60
# File 'lib/rubyist.rb', line 58

def number
  @number
end

#summaryObject (readonly)

Returns the value of attribute summary.



58
59
60
# File 'lib/rubyist.rb', line 58

def summary
  @summary
end