Class: DynamicsCRM::Model::Opportunity
- Inherits:
-
Entity
- Object
- Entity
- DynamicsCRM::Model::Opportunity
show all
- Defined in:
- lib/dynamics_crm/model/opportunity.rb
Instance Attribute Summary
Attributes inherited from Entity
#client, #id, #logical_name
Instance Method Summary
collapse
Constructor Details
#initialize(id, client) ⇒ Opportunity
Returns a new instance of Opportunity.
4
5
6
|
# File 'lib/dynamics_crm/model/opportunity.rb', line 4
def initialize(id, client)
super("opportunity", id, client)
end
|
Instance Method Details
#set_as_lost ⇒ Object
12
13
14
|
# File 'lib/dynamics_crm/model/opportunity.rb', line 12
def set_as_lost
self.send_status("LoseOpportunity")
end
|
#set_as_won ⇒ Object
8
9
10
|
# File 'lib/dynamics_crm/model/opportunity.rb', line 8
def set_as_won
self.send_status("WinOpportunity")
end
|