Class: TryApi::Project

Inherits:
Base
  • Object
show all
Defined in:
app/models/try_api/project.rb

Instance Attribute Summary

Attributes inherited from Base

#id

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

#endpointObject



15
16
17
# File 'app/models/try_api/project.rb', line 15

def endpoint
  "#{ host }#{ port.blank? ? '' : (':' + port.to_s) }"
end

#to_jsonObject



11
12
13
# File 'app/models/try_api/project.rb', line 11

def to_json
  super.merge endpoint: endpoint
end