Sha256: c5d7c87cc88d32aae415a6a00435f6967b28f318b0e3d89a621087ab48b760f8

Contents?: true

Size: 327 Bytes

Versions: 15

Compression:

Stored size: 327 Bytes

Contents

module SiebelDonations
  class Profile < Base

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

    attr_reader :id, :name, :designations

    def initialize(json = {})
      super

      @designations = json['designations'] ? json['designations'].collect { |designation_json| Designation.new(designation_json) } : []
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
siebel_donations-1.0.15 lib/siebel_donations/profile.rb
siebel_donations-1.0.14 lib/siebel_donations/profile.rb
siebel_donations-1.0.13 lib/siebel_donations/profile.rb
siebel_donations-1.0.12 lib/siebel_donations/profile.rb
siebel_donations-1.0.11 lib/siebel_donations/profile.rb
siebel_donations-1.0.10 lib/siebel_donations/profile.rb
siebel_donations-1.0.9 lib/siebel_donations/profile.rb
siebel_donations-1.0.8 lib/siebel_donations/profile.rb
siebel_donations-1.0.7 lib/siebel_donations/profile.rb
siebel_donations-1.0.6 lib/siebel_donations/profile.rb
siebel_donations-1.0.5 lib/siebel_donations/profile.rb
siebel_donations-1.0.4 lib/siebel_donations/profile.rb
siebel_donations-1.0.3 lib/siebel_donations/profile.rb
siebel_donations-1.0.2 lib/siebel_donations/profile.rb
siebel_donations-1.0.1 lib/siebel_donations/profile.rb