class BookResponse

Overview

Response types

Defined in:

amber/schema/examples/xml_parser_example.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(isbn : String, title : String, author : String, price : Float32 | Nil = nil, year : Int32 | Nil = nil, book_id : String | Nil = nil, genre : String | Nil = nil, publisher : String | Nil = nil, isbn13 : String | Nil = nil) #

[View source]

Instance Method Detail

def author : String #

[View source]
def author=(author : String) #

[View source]
def book_id : String | Nil #

[View source]
def book_id=(book_id : String | Nil) #

[View source]
def genre : String | Nil #

[View source]
def genre=(genre : String | Nil) #

[View source]
def isbn : String #

[View source]
def isbn13 : String | Nil #

[View source]
def isbn13=(isbn13 : String | Nil) #

[View source]
def isbn=(isbn : String) #

[View source]
def price : Float32 | Nil #

[View source]
def price=(price : Float32 | Nil) #

[View source]
def publisher : String | Nil #

[View source]
def publisher=(publisher : String | Nil) #

[View source]
def title : String #

[View source]
def title=(title : String) #

[View source]
def to_json(json : JSON::Builder) #

[View source]
def year : Int32 | Nil #

[View source]
def year=(year : Int32 | Nil) #

[View source]