Class: TryApi::Project
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #load_inclusion, load_inclusion, #project, typesafe_accessor
Constructor Details
This class inherits a constructor from TryApi::Base
Instance Method Details
#endpoint ⇒ Object
15 16 17 |
# File 'app/models/try_api/project.rb', line 15 def endpoint "#{ host }#{ port.blank? ? '' : (':' + port.to_s) }" end |
#to_json ⇒ Object
11 12 13 |
# File 'app/models/try_api/project.rb', line 11 def to_json super.merge endpoint: endpoint end |