Class: Badgeapi::Recipient

Inherits:
BadgeapiObject show all
Defined in:
lib/badgeapi/recipient.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from BadgeapiObject

all, collection_name, create, destroy, from_response, #inspect, map_json_to_object, map_related_object, member_name, object_classes, request, #save, update

Instance Attribute Details

#badgesObject (readonly)

Returns the value of attribute badges.



6
7
8
# File 'lib/badgeapi/recipient.rb', line 6

def badges
  @badges
end

#badges_totalObject (readonly)

Returns the value of attribute badges_total.



6
7
8
# File 'lib/badgeapi/recipient.rb', line 6

def badges_total
  @badges_total
end

#bronze_countObject (readonly)

Returns the value of attribute bronze_count.



6
7
8
# File 'lib/badgeapi/recipient.rb', line 6

def bronze_count
  @bronze_count
end

#gold_countObject (readonly)

Returns the value of attribute gold_count.



6
7
8
# File 'lib/badgeapi/recipient.rb', line 6

def gold_count
  @gold_count
end

#objectObject (readonly)

Returns the value of attribute object.



6
7
8
# File 'lib/badgeapi/recipient.rb', line 6

def object
  @object
end

#platinum_countObject (readonly)

Returns the value of attribute platinum_count.



6
7
8
# File 'lib/badgeapi/recipient.rb', line 6

def platinum_count
  @platinum_count
end

#silver_countObject (readonly)

Returns the value of attribute silver_count.



6
7
8
# File 'lib/badgeapi/recipient.rb', line 6

def silver_count
  @silver_count
end

#total_scoreObject (readonly)

Returns the value of attribute total_score.



6
7
8
# File 'lib/badgeapi/recipient.rb', line 6

def total_score
  @total_score
end

#usernameObject (readonly)

Returns the value of attribute username.



6
7
8
# File 'lib/badgeapi/recipient.rb', line 6

def username
  @username
end

Class Method Details

.find(params = {}) ⇒ Object



10
11
12
# File 'lib/badgeapi/recipient.rb', line 10

def find params = {}
	request "get", "#{Badgeapi.api_url}/#{collection_path}", params
end