Class: SiebelDonations::Profile

Inherits:
Base
  • Object
show all
Defined in:
lib/siebel_donations/profile.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

find, get

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

#designationsObject (readonly)

Returns the value of attribute designations.



6
7
8
# File 'lib/siebel_donations/profile.rb', line 6

def designations
  @designations
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/siebel_donations/profile.rb', line 6

def id
  @id
end

#nameObject (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

.pathObject



4
# File 'lib/siebel_donations/profile.rb', line 4

def self.path() '/profiles'; end