struct IoTivity::Resource

Overview

An IoTivity resource.

Defined in:

resource.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(uri : String, types : Array(String), interfaces : Interface | Array(String), default_interface : Interface | String = "", properties : ResourceProperties | String = ResourceProperties::Discoverable) #

[View source]

Instance Method Detail

def default_interface : Interface #

[View source]
def interfaces : Interface #

The interfaces supported by this resource


[View source]
def properties : ResourceProperties #

[View source]
def types : Array(String) #

A list of all resource types of this resource.


[View source]
def uri : String #

The URI used to locate this resource.


[View source]

Macro Detail

macro method_missing(call) #

[View source]