Class: Ecoportal::API::V1
- Inherits:
-
Object
- Object
- Ecoportal::API::V1
- Defined in:
- lib/ecoportal/api/v1.rb,
lib/ecoportal/api/v1/people.rb,
lib/ecoportal/api/v1/person.rb,
lib/ecoportal/api/v1/schema_field.rb,
lib/ecoportal/api/v1/person_schema.rb,
lib/ecoportal/api/v1/person_details.rb,
lib/ecoportal/api/v1/person_schemas.rb,
lib/ecoportal/api/v1/schema_field_value.rb
Defined Under Namespace
Classes: People, Person, PersonDetails, PersonSchema, PersonSchemas, SchemaField, SchemaFieldValue
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(api_key, host: "live.ecoportal.com") ⇒ V1
constructor
A new instance of V1.
- #people ⇒ Object
- #person_schemas ⇒ Object
Constructor Details
#initialize(api_key, host: "live.ecoportal.com") ⇒ V1
Returns a new instance of V1.
5 6 7 8 9 10 11 |
# File 'lib/ecoportal/api/v1.rb', line 5 def initialize(api_key, host: "live.ecoportal.com") @client = Common::Client.new( api_key: api_key, host: host, version: "v1" ) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/ecoportal/api/v1.rb', line 4 def client @client end |
Instance Method Details
#people ⇒ Object
12 13 14 |
# File 'lib/ecoportal/api/v1.rb', line 12 def people V1::People.new(client) end |
#person_schemas ⇒ Object
15 16 17 |
# File 'lib/ecoportal/api/v1.rb', line 15 def person_schemas V1::PersonSchemas.new(client) end |