Class: Jbr::Mock::Property

Inherits:
Property show all
Defined in:
lib/jbr/mock/property.rb

Overview

A property that reads from Jbr.mock instead of Jobber.

Constant Summary

Constants inherited from Property

Property::COORDINATES, Property::CREATE, Property::FIELDS, Property::MATCHED, Property::SELECTION

Constants included from Cliental

Cliental::FIELDS, Cliental::SELECTION

Instance Method Summary collapse

Methods inherited from Property

#address, address_from, fields_from, #find_or_create_for

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Jbr::Resource

Instance Method Details

#cityObject



9
# File 'lib/jbr/mock/property.rb', line 9

def city = @node[:city]

#clientObject



13
# File 'lib/jbr/mock/property.rb', line 13

def client = Mock::Client.new(node: @node.fetch(:client, {}))

#idObject?

Returns the values the app asked for.

Returns:

  • (Object, nil)

    the values the app asked for.



5
# File 'lib/jbr/mock/property.rb', line 5

def id = @node[:id]

#streetObject



7
# File 'lib/jbr/mock/property.rb', line 7

def street = @node[:street]

#zipObject



11
# File 'lib/jbr/mock/property.rb', line 11

def zip = @node[:zip]