Class: Stellar::Members::Photo
- Inherits:
-
Object
- Object
- Stellar::Members::Photo
- Defined in:
- lib/stellar/members.rb
Overview
Information about a member's photo
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Generic Stellar client used to make requests.
-
#course ⇒ Object
readonly
The course this member belongs to.
-
#email ⇒ Object
readonly
The member's e-mail.
-
#name ⇒ Object
readonly
The member's full name.
-
#url ⇒ Object
readonly
URL of the member's photo.
Instance Method Summary collapse
-
#data ⇒ Object
The member's photo bits.
-
#initialize(div, course) ⇒ Photo
constructor
Creates a Stellar client scoped to a student's Gradebook page.
Constructor Details
#initialize(div, course) ⇒ Photo
Creates a Stellar client scoped to a student's Gradebook page.
Instance Attribute Details
#client ⇒ Object (readonly)
Generic Stellar client used to make requests.
111 112 113 |
# File 'lib/stellar/members.rb', line 111 def client @client end |
#course ⇒ Object (readonly)
The course this member belongs to.
108 109 110 |
# File 'lib/stellar/members.rb', line 108 def course @course end |
#email ⇒ Object (readonly)
The member's e-mail.
102 103 104 |
# File 'lib/stellar/members.rb', line 102 def email @email end |
#name ⇒ Object (readonly)
The member's full name.
99 100 101 |
# File 'lib/stellar/members.rb', line 99 def name @name end |
#url ⇒ Object (readonly)
URL of the member's photo.
105 106 107 |
# File 'lib/stellar/members.rb', line 105 def url @url end |
Instance Method Details
#data ⇒ Object
The member's photo bits.
135 136 137 |
# File 'lib/stellar/members.rb', line 135 def data @client.get_file @url end |