Class: Stacked::Badge

Inherits:
Base
  • Object
show all
Defined in:
lib/stacked/badge.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

all, association, collection, find, #initialize, #parse_answers, #parse_badges, #parse_comments, #parse_post_timeline, #parse_questions, #parse_reputations, #parse_tags, #parse_type, #parse_user_timeline, #post, records, request, singular, stats

Constructor Details

This class inherits a constructor from Stacked::Base

Instance Attribute Details

#award_countObject

Returns the value of attribute award_count.



3
4
5
# File 'lib/stacked/badge.rb', line 3

def award_count
  @award_count
end

#badge_idObject Also known as: id

Returns the value of attribute badge_id.



3
4
5
# File 'lib/stacked/badge.rb', line 3

def badge_id
  @badge_id
end

#classObject

Returns the value of attribute class.



3
4
5
# File 'lib/stacked/badge.rb', line 3

def class
  @class
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/stacked/badge.rb', line 3

def description
  @description
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/stacked/badge.rb', line 3

def name
  @name
end