Class: Ecoportal::API::V1
- Inherits:
-
Object
- Object
- Ecoportal::API::V1
- Includes:
- Common::Logging
- 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.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(api_key, host: "live.ecoportal.com", logger: default_logger) ⇒ V1
constructor
A new instance of V1.
- #people ⇒ Object
- #person_schemas ⇒ Object
Constructor Details
#initialize(api_key, host: "live.ecoportal.com", logger: default_logger) ⇒ V1
Returns a new instance of V1.
6 7 8 9 10 11 12 13 14 |
# File 'lib/ecoportal/api/v1.rb', line 6 def initialize(api_key, host: "live.ecoportal.com", logger: default_logger) @logger = logger @client = Common::Client.new( api_key: api_key, host: host, version: "v1", logger: @logger ) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/ecoportal/api/v1.rb', line 5 def client @client end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
5 6 7 |
# File 'lib/ecoportal/api/v1.rb', line 5 def logger @logger end |
Instance Method Details
#people ⇒ Object
15 16 17 |
# File 'lib/ecoportal/api/v1.rb', line 15 def people V1::People.new(client) end |
#person_schemas ⇒ Object
18 19 20 |
# File 'lib/ecoportal/api/v1.rb', line 18 def person_schemas V1::PersonSchemas.new(client) end |