Module: SchemaOrg::Mixins::MonetaryGrant
- Includes:
- Grant
- Included in:
- SchemaOrg::MonetaryGrant
- Defined in:
- lib/schema_org/mixins/monetary_grant.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#amount ⇒ Object
The amount of money.
-
#amount=(value) ⇒ Object
The amount of money.
-
#funder ⇒ Object
A person or organization that supports (sponsors) something through some kind of financial contribution.
-
#funder=(value) ⇒ Object
A person or organization that supports (sponsors) something through some kind of financial contribution.
Methods included from Grant
#funded_item, #funded_item=, #sponsor, #sponsor=
Methods included from Thing
#additional_type, #additional_type=, #alternate_name, #alternate_name=, #description, #description=, #disambiguating_description, #disambiguating_description=, #identifier, #identifier=, #image, #image=, #main_entity_of_page, #main_entity_of_page=, #name, #name=, #owner, #owner=, #potential_action, #potential_action=, #same_as, #same_as=, #subject_of, #subject_of=, #url, #url=
Class Method Details
.schema_property_definitions ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/schema_org/mixins/monetary_grant.rb', line 11 def self.schema_property_definitions { amount: { schema_name: "amount", schema_url: "https://schema.org/amount", comment_lines: ["The amount of money."].freeze, ranges: ["MonetaryAmount", "Number"].freeze, external_ranges: [].freeze, inverse_of: nil, superseded_by: nil, supersedes: nil }.freeze, funder: { schema_name: "funder", schema_url: "https://schema.org/funder", comment_lines: ["A person or organization that supports (sponsors) something through some kind of financial contribution."].freeze, ranges: ["Organization", "Person"].freeze, external_ranges: [].freeze, inverse_of: nil, superseded_by: nil, supersedes: nil }.freeze }.freeze end |
Instance Method Details
#amount ⇒ Object
The amount of money.
37 38 39 |
# File 'lib/schema_org/mixins/monetary_grant.rb', line 37 def amount read_property(:amount) end |
#amount=(value) ⇒ Object
The amount of money.
42 43 44 |
# File 'lib/schema_org/mixins/monetary_grant.rb', line 42 def amount=(value) write_property(:amount, value) end |
#funder ⇒ Object
A person or organization that supports (sponsors) something through some kind of financial contribution.
47 48 49 |
# File 'lib/schema_org/mixins/monetary_grant.rb', line 47 def funder read_property(:funder) end |
#funder=(value) ⇒ Object
A person or organization that supports (sponsors) something through some kind of financial contribution.
52 53 54 |
# File 'lib/schema_org/mixins/monetary_grant.rb', line 52 def funder=(value) write_property(:funder, value) end |