Class: Flexite::Diff
- Inherits:
-
Object
- Object
- Flexite::Diff
- Defined in:
- app/models/flexite/diff.rb,
app/services/flexite/diff/token.rb,
app/services/flexite/diff/get_service.rb,
app/services/flexite/diff/push_service.rb,
app/services/flexite/diff/show_service.rb,
app/services/flexite/diff/apply_service.rb,
app/services/flexite/diff/check_service.rb,
app/services/flexite/diff/save_diff_service.rb
Defined Under Namespace
Classes: ApplyService, CheckService, GetService, PushService, SaveDiffService, ShowService, Token
Instance Method Summary collapse
- #apply(data) ⇒ Object
- #check(data) ⇒ Object
-
#initialize(endpoint) ⇒ Diff
constructor
A new instance of Diff.
Constructor Details
#initialize(endpoint) ⇒ Diff
Returns a new instance of Diff.
3 4 5 |
# File 'app/models/flexite/diff.rb', line 3 def initialize(endpoint) @endpoint = "#{endpoint}/diff" end |
Instance Method Details
#apply(data) ⇒ Object
11 12 13 |
# File 'app/models/flexite/diff.rb', line 11 def apply(data) post("#{@endpoint}/#{__method__}", data) end |
#check(data) ⇒ Object
7 8 9 |
# File 'app/models/flexite/diff.rb', line 7 def check(data) post("#{@endpoint}/#{__method__}", data) end |