Class: Hecks::Bluebook::World
- Inherits:
-
Object
- Object
- Hecks::Bluebook::World
- Includes:
- Behaviour::World, IR
- Defined in:
- lib/hecks/bluebook/hexagon.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#latest ⇒ Object
readonly
Returns the value of attribute latest.
-
#realm ⇒ Object
readonly
Returns the value of attribute realm.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
-
#initialize(domain:, realm: nil, latest: nil, settings: {}) ⇒ World
constructor
A new instance of World.
Methods included from Behaviour::World
Methods included from IR
Constructor Details
#initialize(domain:, realm: nil, latest: nil, settings: {}) ⇒ World
Returns a new instance of World.
52 53 54 55 56 57 |
# File 'lib/hecks/bluebook/hexagon.rb', line 52 def initialize(domain:, realm: nil, latest: nil, settings: {}) @domain = domain.to_s @realm = realm&.to_s @latest = latest&.to_s @settings = settings end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
50 51 52 |
# File 'lib/hecks/bluebook/hexagon.rb', line 50 def domain @domain end |
#latest ⇒ Object (readonly)
Returns the value of attribute latest.
50 51 52 |
# File 'lib/hecks/bluebook/hexagon.rb', line 50 def latest @latest end |
#realm ⇒ Object (readonly)
Returns the value of attribute realm.
50 51 52 |
# File 'lib/hecks/bluebook/hexagon.rb', line 50 def realm @realm end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
50 51 52 |
# File 'lib/hecks/bluebook/hexagon.rb', line 50 def settings @settings end |