Module: LosantRest

Defined in:
lib/losant_rest/error.rb,
lib/losant_rest.rb,
lib/losant_rest/me.rb,
lib/losant_rest/org.rb,
lib/losant_rest/auth.rb,
lib/losant_rest/data.rb,
lib/losant_rest/file.rb,
lib/losant_rest/flow.rb,
lib/losant_rest/orgs.rb,
lib/losant_rest/event.rb,
lib/losant_rest/files.rb,
lib/losant_rest/flows.rb,
lib/losant_rest/utils.rb,
lib/losant_rest/client.rb,
lib/losant_rest/device.rb,
lib/losant_rest/events.rb,
lib/losant_rest/devices.rb,
lib/losant_rest/version.rb,
lib/losant_rest/webhook.rb,
lib/losant_rest/instance.rb,
lib/losant_rest/notebook.rb,
lib/losant_rest/webhooks.rb,
lib/losant_rest/audit_log.rb,
lib/losant_rest/dashboard.rb,
lib/losant_rest/instances.rb,
lib/losant_rest/notebooks.rb,
lib/losant_rest/audit_logs.rb,
lib/losant_rest/dashboards.rb,
lib/losant_rest/data_table.rb,
lib/losant_rest/experience.rb,
lib/losant_rest/application.rb,
lib/losant_rest/data_tables.rb,
lib/losant_rest/integration.rb,
lib/losant_rest/org_invites.rb,
lib/losant_rest/applications.rb,
lib/losant_rest/flow_version.rb,
lib/losant_rest/instance_org.rb,
lib/losant_rest/integrations.rb,
lib/losant_rest/device_recipe.rb,
lib/losant_rest/flow_versions.rb,
lib/losant_rest/instance_orgs.rb,
lib/losant_rest/data_table_row.rb,
lib/losant_rest/device_recipes.rb,
lib/losant_rest/user_api_token.rb,
lib/losant_rest/application_key.rb,
lib/losant_rest/data_table_rows.rb,
lib/losant_rest/edge_deployment.rb,
lib/losant_rest/experience_slug.rb,
lib/losant_rest/experience_user.rb,
lib/losant_rest/experience_view.rb,
lib/losant_rest/instance_member.rb,
lib/losant_rest/user_api_tokens.rb,
lib/losant_rest/application_keys.rb,
lib/losant_rest/edge_deployments.rb,
lib/losant_rest/experience_group.rb,
lib/losant_rest/experience_slugs.rb,
lib/losant_rest/experience_users.rb,
lib/losant_rest/experience_views.rb,
lib/losant_rest/instance_members.rb,
lib/losant_rest/experience_domain.rb,
lib/losant_rest/experience_groups.rb,
lib/losant_rest/experience_domains.rb,
lib/losant_rest/experience_version.rb,
lib/losant_rest/instance_api_token.rb,
lib/losant_rest/experience_endpoint.rb,
lib/losant_rest/experience_versions.rb,
lib/losant_rest/instance_api_tokens.rb,
lib/losant_rest/instance_org_invite.rb,
lib/losant_rest/instance_org_member.rb,
lib/losant_rest/application_template.rb,
lib/losant_rest/experience_endpoints.rb,
lib/losant_rest/instance_org_invites.rb,
lib/losant_rest/instance_org_members.rb,
lib/losant_rest/application_api_token.rb,
lib/losant_rest/application_dashboard.rb,
lib/losant_rest/application_templates.rb,
lib/losant_rest/application_api_tokens.rb,
lib/losant_rest/application_dashboards.rb,
lib/losant_rest/application_certificate.rb,
lib/losant_rest/application_certificates.rb,
lib/losant_rest/application_certificate_authority.rb,
lib/losant_rest/application_certificate_authorities.rb

Overview

The MIT License (MIT)

Copyright © 2021 Losant IoT, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Defined Under Namespace

Classes: Application, ApplicationApiToken, ApplicationApiTokens, ApplicationCertificate, ApplicationCertificateAuthorities, ApplicationCertificateAuthority, ApplicationCertificates, ApplicationDashboard, ApplicationDashboards, ApplicationKey, ApplicationKeys, ApplicationTemplate, ApplicationTemplates, Applications, AuditLog, AuditLogs, Auth, Client, Dashboard, Dashboards, Data, DataTable, DataTableRow, DataTableRows, DataTables, Device, DeviceRecipe, DeviceRecipes, Devices, EdgeDeployment, EdgeDeployments, Event, Events, Experience, ExperienceDomain, ExperienceDomains, ExperienceEndpoint, ExperienceEndpoints, ExperienceGroup, ExperienceGroups, ExperienceSlug, ExperienceSlugs, ExperienceUser, ExperienceUsers, ExperienceVersion, ExperienceVersions, ExperienceView, ExperienceViews, File, Files, Flow, FlowVersion, FlowVersions, Flows, Instance, InstanceApiToken, InstanceApiTokens, InstanceMember, InstanceMembers, InstanceOrg, InstanceOrgInvite, InstanceOrgInvites, InstanceOrgMember, InstanceOrgMembers, InstanceOrgs, Instances, Integration, Integrations, Me, Notebook, Notebooks, Org, OrgInvites, Orgs, ResponseError, UserApiToken, UserApiTokens, Utils, Webhook, Webhooks

Constant Summary collapse

VERSION =
"1.14.0"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.clientObject



107
108
109
# File 'lib/losant_rest.rb', line 107

def self.client
  @client ||= Client.new
end

.method_missing(sym, *args, &block) ⇒ Object



111
112
113
# File 'lib/losant_rest.rb', line 111

def self.method_missing(sym, *args, &block)
  self.client.__send__(sym, *args, &block)
end

Instance Method Details

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


115
116
117
# File 'lib/losant_rest.rb', line 115

def respond_to_missing?(method_name, include_private = false)
  self.client.respond_to?(method_name, include_private)
end