Class: SiebelDonations::Profile
- Defined in:
- lib/siebel_donations/profile.rb
Instance Attribute Summary collapse
-
#designations ⇒ Object
readonly
Returns the value of attribute designations.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(json = {}) ⇒ Profile
constructor
A new instance of Profile.
Methods inherited from Base
Constructor Details
#initialize(json = {}) ⇒ Profile
Returns a new instance of Profile.
8 9 10 11 12 |
# File 'lib/siebel_donations/profile.rb', line 8 def initialize(json = {}) super @designations = json['designations'] ? json['designations'].collect { |designation_json| Designation.new(designation_json) } : [] end |
Instance Attribute Details
#designations ⇒ Object (readonly)
Returns the value of attribute designations.
6 7 8 |
# File 'lib/siebel_donations/profile.rb', line 6 def designations @designations end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/siebel_donations/profile.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/siebel_donations/profile.rb', line 6 def name @name end |
Class Method Details
.path ⇒ Object
4 |
# File 'lib/siebel_donations/profile.rb', line 4 def self.path() '/profiles'; end |