struct PlaceOS::Client::API::Models::Asset

Defined in:

placeos/api/models/asset.cr

Constructors

Instance Method Summary

Constructor methods inherited from struct PlaceOS::Client::API::Models::Response

new(pull : JSON::PullParser) new

Macros inherited from module PlaceOS::Client::API::Models::Response::Init

__add_initialize__ __add_initialize__

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def brand : String | Nil #

[View source]
def category : String | Nil #

[View source]
def description : String | Nil #

Markdown formatted text that describes the asset.


[View source]
def good_until_date : Time | Nil #

[View source]
def id : String #

A universally unique identifier for the Asset.


[View source]
def identifier : String | Nil #

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

Array of URLs to images for an asset


[View source]
def in_use : Int32 #

[View source]
def invoice : String | Nil #

URL of downloadable receipt


[View source]
def name : String #

A human readable identifier.


[View source]
def other_data : JSON::Any #

[View source]
def parent_id : String | Nil #

[View source]
def purchase_date : Time #

[View source]
def purchase_price : Int32 | Nil #

TODO define currency for #purchase_price


[View source]
def quantity : Int32 #

[View source]