Class: AFCSalesforce::Asset
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Methods inherited from Base
Methods included from Models::Concerns::TypeSetter
Constructor Details
This class inherits a constructor from AFCSalesforce::Base
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/afc_salesforce/asset.rb', line 3 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
3 4 5 |
# File 'lib/afc_salesforce/asset.rb', line 3 def owner @owner end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/afc_salesforce/asset.rb', line 3 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/afc_salesforce/asset.rb', line 3 def value @value end |
Instance Method Details
#to_h ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/afc_salesforce/asset.rb', line 5 def to_h AFCSalesforce::Models::Asset.new( asset_value__c: @value, name: @name, asset_type__c: @type ).to_h end |