Class: AFCSalesforce::Models::Asset

Inherits:
Base
  • Object
show all
Defined in:
lib/afc_salesforce/models/asset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Concerns::TypeSetter

extended

Constructor Details

This class inherits a constructor from AFCSalesforce::Models::Base

Instance Attribute Details

#account__cObject

Returns the value of attribute account__c.



4
5
6
# File 'lib/afc_salesforce/models/asset.rb', line 4

def 
  @account__c
end

#asset_type__cObject

Returns the value of attribute asset_type__c.



4
5
6
# File 'lib/afc_salesforce/models/asset.rb', line 4

def asset_type__c
  @asset_type__c
end

#asset_value__cObject

Returns the value of attribute asset_value__c.



4
5
6
# File 'lib/afc_salesforce/models/asset.rb', line 4

def asset_value__c
  @asset_value__c
end

#assetid__cObject

Returns the value of attribute assetid__c.



4
5
6
# File 'lib/afc_salesforce/models/asset.rb', line 4

def assetid__c
  @assetid__c
end

#belongs_to__cObject

Returns the value of attribute belongs_to__c.



4
5
6
# File 'lib/afc_salesforce/models/asset.rb', line 4

def belongs_to__c
  @belongs_to__c
end

#contact__cObject

Returns the value of attribute contact__c.



4
5
6
# File 'lib/afc_salesforce/models/asset.rb', line 4

def contact__c
  @contact__c
end

#createdbyObject

Returns the value of attribute createdby.



4
5
6
# File 'lib/afc_salesforce/models/asset.rb', line 4

def createdby
  @createdby
end

#filedataid__cObject

Returns the value of attribute filedataid__c.



4
5
6
# File 'lib/afc_salesforce/models/asset.rb', line 4

def filedataid__c
  @filedataid__c
end

#lastmodifiedbyObject

Returns the value of attribute lastmodifiedby.



4
5
6
# File 'lib/afc_salesforce/models/asset.rb', line 4

def lastmodifiedby
  @lastmodifiedby
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/afc_salesforce/models/asset.rb', line 4

def name
  @name
end

#ownerObject

Returns the value of attribute owner.



4
5
6
# File 'lib/afc_salesforce/models/asset.rb', line 4

def owner
  @owner
end

Instance Method Details

#to_hObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/afc_salesforce/models/asset.rb', line 9

def to_h
  {
    :"Name"           => @name,
    :"CreatedBy"      => @createdby,
    :"LastModifiedBy" => @lastmodifiedby,
    :"Owner"          => @owner,
    :"AssetID__c"     => @assetid__c,
    :"Asset_Type__c"  => @asset_type__c,
    :"Asset_Value__c" => @asset_value__c,
    :"Belongs_To__c"  => @belongs_to__c,
    :"Contact__c"     => @contact__c,
    :"Account__c"     => @account__c,
    :"FileDataID__c"  => @filedataid__c
  }.select{ |k,v| !v.nil? }
end