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
14 15 16 |
# File 'app/models/try_api/project.rb', line 14 def endpoint "#{ host }#{ port.blank? ? '' : (':' + port.to_s) }" end |
#to_json ⇒ Object
10 11 12 |
# File 'app/models/try_api/project.rb', line 10 def to_json super.merge endpoint: endpoint end |